Returns a GestureFragment for the given events. Only "wheel" events
will be considered.
If there are no "wheel" events in the given list of events, returns false.
The deltas of all events are summed together before determining final delta
and direction.
If the events are of conflicting types, i.e. some scroll, some zoom, then
the intent will be "unknown" and the direction will be "ambiguous".
If the deltas sum up to 0, the direction will be "none".
IMPORTANT NOTES ON THE DELTA VALUES
For wheel gestures the deltas are highly unreliable, especially when
zooming (Control + wheel or pinching trackpad). You should not assume they
correspond to the would-be scroll or zoom amount that the browser would do.
But they can be used to determine relative amounts for animating, etc.
If the browser reports the delta values of a WheelEvent to be in mode "line",
then a configurable fixed value is used
(settings.deltaLineHeight).
Returns a GestureFragment for the given events. Only "wheel" events will be considered.
If there are no "wheel" events in the given list of events, returns
false
.The deltas of all events are summed together before determining final delta and direction.
If the events are of conflicting types, i.e. some scroll, some zoom, then the intent will be "unknown" and the direction will be "ambiguous".
If the deltas sum up to 0, the direction will be "none".
IMPORTANT NOTES ON THE DELTA VALUES
For wheel gestures the deltas are highly unreliable, especially when zooming (Control + wheel or pinching trackpad). You should not assume they correspond to the would-be scroll or zoom amount that the browser would do. But they can be used to determine relative amounts for animating, etc.
If the browser reports the delta values of a WheelEvent to be in mode "line", then a configurable fixed value is used (settings.deltaLineHeight).
If the browser reports the delta values of a WheelEvent to be in mode "page", then a configurable fixed value is used (settings.deltaPageWidth and (settings.deltaPageHeight).
For zoom intents
deltaZ
is based on what the browser reports as thedeltaY
, which in most browsers roughly corresponds to a percentage zoom factor.