Hi guys,When you have a draggable layer which also has a Click event, it fires the click event once the drag has ended. Is it possible to prevent this?
Perhaps you could use MouseUp and MouseDown instead of a click? Not sure what you're trying to do exactly, though?
I would look at the _deltas and if it exists not fire the click
I'm trying to make a card deck, which you can swipe to get a next one, or tap to flip it around...
See this CodePen: http://codepen.io/akolchenko/pen/ioIbc
Something like this example? http://examples.framerjs.com/#draggable-swipe.framer
I would refer to hammer.js that allows for multitouch event listeners. This way you could do on even tap or on event swipe. There was a post in the group about it a month ago but here is an example of how you can extend framer with hammer. http://cl.ly/2a1c3x0P1i2U
The codepen from Алексей Кольченко worked for me, thanks for all the input!This is how I use it..
cardHolder.on Events.DragMove, (e) -> @dragging = true
cardHolder.on Events.DragEnd, (e) -> @dragging = false
cardHolder.on Events.Click, (e) -> return if @dragging