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

What is Framer? Join the Community
Return to index
Joey Lamelas
Posted Mar 12 - Read on Facebook

Is there any way to return the position of the mouse/tap when you have the device displayed on the browser?


Joshua Tucker

Hey Joey! There's a few different ways to do it. You can use pageX/Y, screenX/Y, etc. In Framer's Documentation, it talks about Events.touchEvent. I would recommend starting there and see if that gets you where you want to be.

Joey Lamelas

Hey Joshua Tucker, thanks for responding, but I'm talking about getting the mouse position if you have a mobile device showing in the viewer. ScreenX/Y or pageX/Y returns the position in relation to the entire screen.

Koen Bok

I'm working on improving this. Here is a project with some sample code:

Read the entire post on Facebook