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

What is Framer? Join the Community
Return to index
Keith Lang
Posted Nov 03 - Read on Facebook

This print statement works for me in Studio, but on iPhone it prints 'Undefined'. I *think* I'm wrapping it correctly, but it seems not. Any help would be much appreciated!

myThing.scrollable.on Events.TouchStart, (event, layer) ->
myTouchEvent = Events.touchEvent(event)
startingPoint.x = myTouchEvent.x
startingPoint.y = myTouchEvent.y
gestureIsScrollCandidate = true

print startingPoint.x


Keith Lang

OK I solved it. I needed to use myTouchEvent.clientX instead of myTouchEvent.x

Jordan Robert Dobson

You should just use my pointer module. :)

Read the entire post on Facebook