Skip to content

Commit

Permalink
Don't cancel original events in touch emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
koenbok committed Feb 8, 2016
1 parent 3648250 commit 780e9b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framer/Extras/TouchEmulator.coffee
Expand Up @@ -106,7 +106,7 @@ class TouchEmulator extends BaseClass


mousedown: (event) => mousedown: (event) =>


cancelEvent(event) # cancelEvent(event)


@isMouseDown = true @isMouseDown = true
@target = event.target @target = event.target
Expand All @@ -124,7 +124,7 @@ class TouchEmulator extends BaseClass
x: event.pageX x: event.pageX
y: event.pageY y: event.pageY


cancelEvent(event) # cancelEvent(event)


@startPoint ?= @point @startPoint ?= @point
@centerPoint ?= @point @centerPoint ?= @point
Expand Down Expand Up @@ -152,7 +152,7 @@ class TouchEmulator extends BaseClass


mouseup: (event) => mouseup: (event) =>


cancelEvent(event) # cancelEvent(event)


if @isPinchKeyDown or @isPanKeyDown if @isPinchKeyDown or @isPanKeyDown
dispatchTouchEvent("touchend", @target, event, @touchPointDelta) dispatchTouchEvent("touchend", @target, event, @touchPointDelta)
Expand Down

0 comments on commit 780e9b3

Please sign in to comment.