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

What is Framer? Join the Community
Return to index
Michał Sambora
Posted Apr 12 - Read on Facebook

Why this obiect is returning "undefined" on mobile ? Any ideas

Stack[i].on Events.TouchStart, (event, layer) ->
startX = event.x

2 Comments

Benjamin Den Boer

Hey Michał Sambora - this is what you're looking for: (you need to wrap the event first) :)

startX = Events.touchEvent(event).clientX

Michał Sambora

Benjamin Den Boer thanks, got it actually with some help :D

Read the entire post on Facebook