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

What is Framer? Join the Community
Return to index
Ayushi Sinha
Posted Sep 03 - Read on Facebook

Hi Framers
I am trying to implement a touch action.
In the attached example, it works perfect in the laptop. The two images get switched depending on the mouse position.
Now I want to get the same behavior in the device. But when I use it in my android, it just comes as a static screen. I am doubtful if I am using the right Event. Any ideas on how can I make it functional on my android device?

2 Comments

Ayushi Sinha

Any suggestions?

Benjamin Den Boer

Hey Ayushi Sinha - you'll need to wrap the event within Events.touchEvents for this to work on mobile too. So instead of referencing the event.offsetX → Events.touchEvent(event).offsetX (etc.) :-)

Read the entire post on Facebook