Permalink
Browse files

Fix force touch

  • Loading branch information...
Koen Bok
Koen Bok committed Feb 3, 2016
1 parent 7f04ad8 commit 63e19c91574c0b46c017ad0f6223109d5e4e74c3
Showing with 5 additions and 0 deletions.
  1. +5 −0 framer/GestureInputRecognizer.coffee
@@ -392,6 +392,11 @@ class exports.GestureInputRecognizer
if event.fingers == 2 and @session.lastEvent.fingers == 2
event.delta = Utils.pointSubtract(event.touchCenter, @session.lastEvent.touchCenter)
# Force touch
if @session?.lastEvent
if @session.force
event.force = @session.force
# Convert point style event properties to dom style:
# event.delta -> event.deltaX, event.deltaY
for pointKey in ["point", "start", "previous", "offset", "delta", "velocity", "touchCenter", "touchOffset"]

0 comments on commit 63e19c9

Please sign in to comment.