Permalink
Browse files

fix touch emulator centerpoint

  • Loading branch information...
J.P.P Treub
J.P.P Treub committed Jan 21, 2016
1 parent 92d6d90 commit 56b653aec4dc78e55fa1ae0d2359a26b0899bd14
Showing with 6 additions and 6 deletions.
  1. +6 −6 framer/Extras/TouchEmulator.coffee
@@ -5,12 +5,12 @@ createTouch = (event, identifier, offset={x:0, y:0}) ->
return touch =
identifier: identifier
target: event.target
pageX: event.pageX + offset.x
pageY: event.pageY + offset.y
clientX: event.clientX + offset.x
clientY: event.clientY + offset.y
screenX: event.screenX + offset.x
screenY: event.screenY + offset.y
pageX: event.pageX - offset.x
pageY: event.pageY - offset.y
clientX: event.clientX - offset.x
clientY: event.clientY - offset.y
screenX: event.screenX - offset.x
screenY: event.screenY - offset.y
dispatchTouchEvent = (type, target, event, offset) ->

0 comments on commit 56b653a

Please sign in to comment.