How to make swipe right/left in scroll view

I have objects on horinzontal in a scrollview, but only move to right/left when i use spaces that dont have objects(blank spaces).
How can i detect and make swipe when i make the movement on my scrollview?

Hard to say without seeing your code, but I’d guess that the objects are grabbing the touch event from the scrollView. Take a look at object:takeFocus() and see if that fixes the problem. The example is for a vertical scrollView, so you’ll need to change to to horizontal- especially changing dy = math.abs ( ( event.y - event.yStart ) ) to dx = math.abs ( ( event.x - event.xStart ) )

thanks, fixed

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.