Permalink
Browse files

Fix gesture event velocity

  • Loading branch information...
Koen Bok
Koen Bok committed Jan 27, 2016
1 parent 3d977bc commit 15cffc4db2b99203ea0226fa6693147806c9497b
Showing with 1 addition and 1 deletion.
  1. +1 −1 framer/GestureInputRecognizer.coffee
@@ -337,7 +337,7 @@ class exports.GestureInputRecognizer
event.deltaTime = event.time - @session.lastEvent.time
if @session?.events
events = _.filter @session.events, (e) -> e.time > (event.time - GestureInputVelocityTime)
events = _.filter @session.events, (e) -> e.time > (event.time - (GestureInputVelocityTime * 1000))
event.velocity = @_getVelocity(events)
if event.fingers > 0

0 comments on commit 15cffc4

Please sign in to comment.