Permalink
Browse files

Add option to disable multi touch

  • Loading branch information...
Koen Bok
Koen Bok committed Feb 1, 2016
1 parent 026e006 commit 50f0eed217b23499405dc341b8439e81aeec0991
Showing with 9 additions and 1 deletion.
  1. +9 −1 framer/Extras/TouchEmulator.coffee
@@ -69,6 +69,10 @@ class TouchEmulator extends BaseClass
image: @touchPointerImage
opacity: 0
destroy: ->
@context.reset()
@context = null
# Event handlers
keydown: (event) =>
@@ -217,4 +221,8 @@ touchEmulator = null
exports.enable = ->
return if Utils.isTouch()
touchEmulator ?= new TouchEmulator()
touchEmulator ?= new TouchEmulator()
exports.disable = ->
return unless touchEmulator
touchEmulator.destroy()

0 comments on commit 50f0eed

Please sign in to comment.