Skip to content

Instantly share code, notes, and snippets.

@minodisk
Created July 14, 2012 08:00
Show Gist options
  • Select an option

  • Save minodisk/3109974 to your computer and use it in GitHub Desktop.

Select an option

Save minodisk/3109974 to your computer and use it in GitHub Desktop.
get mouse position from TouchEvent and MouseEvent
getMousePoint: (e)->
e = e.touches?[0] or e
x: e.pageX
y: e.pageY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment