Skip to content

Instantly share code, notes, and snippets.

@Nash0x7E2
Last active April 14, 2020 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nash0x7E2/2d0914f02f8e4aa2a0368e41ccde34c8 to your computer and use it in GitHub Desktop.
Save Nash0x7E2/2d0914f02f8e4aa2a0368e41ccde34c8 to your computer and use it in GitHub Desktop.
Property/Callback Description
onTapDown OnTapDown is fired everytime the user makes contact with the screen.
onTapUp When the user stops touching the screen, onTapUp is called.
onTap When the screen is briefly touched, onTap is triggered.
onTapCancel When a user touches the screen but does not complete the Tap, this event is fired.
onDoubleTap onDoubleTap is called when the screen is touched twice in quick succession.
onLongPress The the user touches the screen for longer than 500 milliseconds, onLongPress is fired.
onVerticalDragDown When a pointer comes into contact with the screen and begin to move in a vertical direction, onVerticalDown is called.
onVerticalDragStart onVerticalDragStart is called when the pointer starts moving in a vertical direction.
onVerticalDragUpdate This is called every time there is a change in the position of the pointer on the screen.
onVerticalDragEnd When the user stops moving, the drag is considered complete and this event is called.
onVerticalDragCancel Called when the user abruptly stops dragging.
onHorizontalDragDown Called when the user/pointer comes into contact with the screen and begin to move horizontally.
onHorizontalDragStart The user/pointer has made contact with the screen and started moving in a horizontal direction.
onHorizontalDragUpdate Called every time there is a change in the location of the pointer on the horizontal/x-axis.
onHorizontalDragEnd At the end of a horizontal drag, this event is called.
onHorizontalDragCancel Called when the pointer which triggered onHorizontalDragDown did not complete successfully.
onPanDown Called when a pointer comes into contact with the screen.
onPanStart onPanStart is fired when the pointer event begins to move.
onPanUpdate onPanUpdate is called everytime the pointer changes location.
onPanEnd When the pan is complete, this event is called.
onScaleStart When a pointer comes in contact with the screen and establishes a focal point of 1.0, this event is called.
onScaleUpdate The pointer which is in contact with the screen have indicated a new focal point
onScaleEnd Called when the pointer is no longer in contact with the screen signalling the end of the gesture.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment