Skip to content

Instantly share code, notes, and snippets.

@koenbok
Last active January 24, 2016 12:27
Show Gist options
  • Select an option

  • Save koenbok/6ccd42159fda2de4cec4 to your computer and use it in GitHub Desktop.

Select an option

Save koenbok/6ccd42159fda2de4cec4 to your computer and use it in GitHub Desktop.
# Gesture events
Gestures = {}
# Tap
Gestures.Tap = "tap"
Gestures.TapStart = "tapstart"
Gestures.TapEnd = "tapend"
Gestures.DoubleTap = "doubletap"
# Force Tap
Gestures.ForceTap = "forcetap"
Gestures.ForceTapStart = "forcetapstart"
Gestures.ForceTapEnd = "forcetapend"
# Press
Gestures.LongPress = "longpress"
Gestures.LongPressStart = "longpressstart"
Gestures.LongPressEnd = "longpressend"
# Swipe
Gestures.Swipe = "swipe"
Gestures.SwipeLeft = "swipeleft"
Gestures.SwipeRight = "swiperight"
Gestures.SwipeUp = "swipeup"
Gestures.SwipeDown = "swipedown"
# Edge Swipe
Gestures.EdgeSwipe = "edgeswipe"
Gestures.EdgeSwipeLeft = "edgeswipeleft"
Gestures.EdgeSwipeRight = "edgeswiperight"
Gestures.EdgeSwipeTop = "edgeswipetop"
Gestures.EdgeSwipeBottom = "edgeswipebottom"
# Pan
Gestures.Pan = "pan"
Gestures.PanStart = "panstart"
Gestures.PanEnd = "panend"
Gestures.PanLeft = "panleft"
Gestures.PanRight = "panright"
Gestures.PanUp = "panup"
Gestures.PanDown = "pandown"
# Pinch
Gestures.Pinch = "pinch"
Gestures.PinchStart = "pinchstart"
Gestures.PinchEnd = "pinchend"
# Scale
Gestures.Scale = "scale"
Gestures.ScaleStart = "scalestart"
Gestures.ScaleEnd = "scaleend"
# Rotate
Gestures.Rotate = "rotate"
Gestures.RotateStart = "rotatestart"
Gestures.RotateEnd = "rotateend"
exports.Gestures = Gestures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment