Skip to content

Instantly share code, notes, and snippets.

@peppy
Created October 5, 2016 10: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 peppy/e2334f4f8e472f11e585b8b5f383a55f to your computer and use it in GitHub Desktop.
Save peppy/e2334f4f8e472f11e585b8b5f383a55f to your computer and use it in GitHub Desktop.
mouse events are fired in sequence: OnMouseDown -> (OnMouseUp, Click)
- Mouse is clicked
- MouseUp runs a scaleTo transformation helper with 0 delay
- scaleTo helper sets the scale isntantly
- changing scale causes invalidation
- invalidation causes Click to fail because the drawable_Contains check returns false (autosize has no defined scale at this point)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment