Permalink
Browse files

Rewrote TouchEmulator to work with new animation api

  • Loading branch information...
nvh committed Sep 12, 2016
1 parent cb4555c commit f777e281faf8493d9a50f653821cf925315ed2fe
Showing with 11 additions and 11 deletions.
  1. +11 −11 framer/Extras/TouchEmulator.coffee
@@ -186,21 +186,21 @@ class TouchEmulator extends BaseClass
@touchPointLayer.midY = @point.y
@touchPointLayer.scale = 1.8
@touchPointLayer.animate
properties:
opacity: 1
scale: 1
# midX: @point.x + @touchPointerInitialOffset.x
# midY: @point.y + @touchPointerInitialOffset.y
time: 0.1
curve: "ease-out"
opacity: 1
scale: 1
# midX: @point.x + @touchPointerInitialOffset.x
# midY: @point.y + @touchPointerInitialOffset.y
options:
time: 0.1
curve: "ease-out"
hideTouchCursor: ->
@touchPointLayer.animateStop()
@touchPointLayer.animate
properties:
opacity: 0
scale: 1.2
time: 0.08
opacity: 0
scale: 1.2
options:
time: 0.08
mousemovePosition: (event) =>
@point =

0 comments on commit f777e28

Please sign in to comment.