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

What is Framer? Join the Community
Return to index
Vlad Mafteiu Scai
Posted Apr 25 - Read on Facebook

How can I detect the x,y values for a continuous touch or mouse hover event? I am not looking to move a layer, but detect if the layer underneath matches the cursor/touch event current position.

2 Comments

Vlad Mafteiu Scai

I am looking to make a grid of layers. If I tap a layer it should change to another state(simple enough so far). However if I tap and do not lift finger but move it around, the layers that I hover over should have another state, but different from the one when I release my finger(or mouse click).

Ian McClure

The touch event has a property for it. It should be event.location.x or .y

Read the entire post on Facebook