This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Ian Silber
Posted Jan 06 - Read on Facebook

Event.Click is fired when you on mouseup inside of the layer, regardless of whether or not the click began on that element. This causes a lot of misfires, particularly when working with scroll views, etc. I find myself having to do a lot of checks inside the click event like checking if isMoving is false.

Does anybody have any better way to do this? Would love a "Tap" gesture that is more strict about how it's triggered.

6 Comments

Tanner Christensen

-

George Kedenburg III

using the native click event vs Events.Click seems to work for me in a quick test

Marc Krenn

Here's another way to do it:

http://share.framerjs.com/0p5fcmy7evzp/

Ian Silber

George Kedenburg III nice! That works well! Still doesn't get cancelled on scroll but address a bunch of the misfires of touching up inside a layer. 👌👌

Marc Krenn

Jordan has some great examples on how to prevent 'false positives' on scrollComponents.

Koen Bok

The false positive clicks in scroll/drag will be automagically fixed in the next Framer.js update.

Read the entire post on Facebook