anyone implemented a swipe gesture for slideLeft ?

has anyone added a swipe gesture to slideLeft transition ?

eg. swipe screen from right to left performs the slideLeft

transition only completes when swipe has moved sufficient distance

[import]uid: 97524 topic_id: 26873 reply_id: 326873[/import]

Check out the photo viewer sample code with the corona sdk, it contains a function you can easily modify for this use :slight_smile: [import]uid: 84637 topic_id: 26873 reply_id: 109107[/import]

local function onSceneTouch( self, event ) if event.phase == "ended" then if event.xStart \< event.x and (event.x - event.xStart) \>= 30 then storyboard.gotoScene( "scene1", "slideRight", 500 ) return true end elseif event.xStart \> event.x and (event.xStart - event.x) \>= 30 then storyboard.gotoScene( "scene3", "slideLeft", 500 ) return true end end [import]uid: 3915 topic_id: 26873 reply_id: 109158[/import]

Will check out both options.

Many thanks. [import]uid: 97524 topic_id: 26873 reply_id: 109200[/import]