Skip to main content

Module touch

Module touch 

Source

StructsΒ§

FlingAction πŸ”’
FlingRefreshDriverObserver πŸ”’
HitTestResultCache πŸ”’
A cached PaintHitTestResult to use during a touch sequence. This is kept so that the renderer doesn’t have to constantly keep making hit tests while during panning and flinging actions.
PanPolicyInput πŸ”’
Input captured at touch-down for deciding PanPolicy at pan-start. touch_action and the structurally scrollable axes of the hit node.
PendingTouchInputEvent πŸ”’
This data structure is used to store information about touch events that are sent from the Renderer to the Constellation, so that they can finish processing once their DOM events are fired.
TouchHandler
TouchPoint
An action that can be immediately performed in response to a touch move event without waiting for script.
TouchSequenceId πŸ”’
An ID for a sequence of touch events between a Down and the Up or Cancel event. The ID is the same for all events between Down and Up or Cancel
TouchSequenceInfo

EnumsΒ§

PanAxis πŸ”’
The axis of a pan gesture. Once panning begins, the gesture is locked to the dominant axis for the rest of the sequence, so that e.g. a vertical pan that passes over a horizontally scrollable element keeps scrolling the page instead of switching to horizontal scrolling.
PanPolicy πŸ”’
The axis-lock policy for a pan gesture, decided at pan-start from the hit node’s touch-action and scrollable axes plus the gesture’s dominant axis.
TouchIdMoveTracking πŸ”’
TouchMoveAllowed
Whether the default move action is allowed or not.
TouchSequenceState πŸ”’
The states of the touch input state machine.

ConstantsΒ§

FLING_MAX_SCREEN_PX πŸ”’
Maximum velocity when flinging.
FLING_MIN_SCREEN_PX πŸ”’
Minimum velocity required for transitioning to fling when panning ends.
FLING_SCALING_FACTOR πŸ”’
Factor by which the flinging velocity changes on each tick.
TOUCH_PAN_MIN_SCREEN_PX πŸ”’
Minimum number of DeviceIndependentPixel to begin touch scrolling/Pinching.