scrollWheelDeltaPerTick
The magnitude of Event.delta that corresponds to one tick of the scroll wheel.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Field
- Namespace: UnityEngine
- Assembly: UnityEngine.UICommonModule
public const float scrollWheelDeltaPerTick = 3
Remarks
Divide the Event.delta of an EventType.ScrollWheel event by this value to get the number of scroll wheel ticks. UI Toolkit's uses the same scale, exposed as , so scroll distances are consistent between IMGUI and UI Toolkit, in the Editor and at runtime.
WheelEventWheelEvent.scrollDeltaPerTick