Skip to content

Instantly share code, notes, and snippets.

@shaunlebron
Last active October 23, 2018 16:37
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 shaunlebron/f4419962a2d0ea65bca414d7f224c374 to your computer and use it in GitHub Desktop.
Save shaunlebron/f4419962a2d0ea65bca414d7f224c374 to your computer and use it in GitHub Desktop.
Idling
Idling
shiftdown -> Highlighting point
mousedown -> MouseDrag?
touchstart -> TouchDrag?
Highlighting point
mousedown -> Creating selection
mousemove -> Highlighting point
shiftup -> Idling
Dragging
Panning view
mousemove -> Panning view
mouseup -> Idling
touchmove -> Panning view
touchstart -> TouchDrag?
touchend -> TouchDrag?
Pinch-zooming view
touchmove -> Pinch-zooming view
touchstart -> TouchDrag?
touchend -> TouchDrag?
Creating selection
mousemove -> Creating selection
mouseup -> Idling
shiftup -> Idling
Moving selection
mousemove -> Moving selection
mouseup -> Idling
Resizing selection
mousemove -> Resizing selection
mouseup -> Idling
MouseDrag?
isCursorResizeSelection -> Resizing selection
isCursorMoveSelection -> Moving selection
isDefaultCursor -> Panning view
TouchDrag?
hasNoTouch -> Idling
hasOneTouch -> Panning view
hasTwoTouches -> Pinch-zooming view
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment