Skip to content

Instantly share code, notes, and snippets.

@shaunlebron
Last active October 23, 2018 16:36
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/b54bde7594068bf83519a8e8ac8f52be to your computer and use it in GitHub Desktop.
Save shaunlebron/b54bde7594068bf83519a8e8ac8f52be to your computer and use it in GitHub Desktop.
Idling
Idling
Idling without Selection*
shiftdown -> Highlighting point
mousedown -> Panning view
Idling with Selection
shiftdown -> Highlighting point
mousedown -> Drag?
Idle?
hasSelection -> Idling with Selection
hasNoSelection -> Idling without Selection
Drag?
isCursorResizeSelection -> Resizing selection
isCursorMoveSelection -> Moving selection
isDefaultCursor -> Panning view
Highlighting point
mousedown -> Creating selection
mousemove -> Highlighting point
Dragging
Panning view
mousemove -> Panning view
mouseup -> Idle?
Creating selection
mousemove -> Creating selection
mouseup -> Idling with Selection
shiftup -> Creating selection
Moving selection
mousemove -> Moving selection
mouseup -> Idling with Selection
Resizing selection
mousemove -> Resizing selection
mouseup -> Idling with Selection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment