Skip to content
Browse files

Avoid click on scroll for more Tap/Press events

  • Loading branch information
Koen Bok
Koen Bok committed Feb 1, 2016
1 parent 9d7c8ee commit 08fd95c505815c0bbcf341ab757bd1d6834b6434
Showing with 3 additions and 1 deletion.
  1. +3 −1 framer/
@@ -941,7 +941,9 @@ class exports.Layer extends BaseClass
# you expect when you add a button to a scroll content layer.

if @_cancelClickEventInDragSession
if eventName is Events.Click
if eventName in [Events.Click,
Events.Tap, Events.TapStart, Events.TapEnd,
Events.LongPress, Events.LongPressStart, Events.LongPressEnd]
return if @_parentDraggableLayer()?.draggable.isMoving

# Always scope the event this to the layer and pass the layer as

0 comments on commit 08fd95c

Please sign in to comment.
You can’t perform that action at this time.