iOS 7 Style swipe navigation

@jonjonsson are you looking to swipe backwards iOS7 style or just swipe the current display off-screen?

If you want iOS7 style you need to have the previous scene loaded anyway. If you just want to swipe objects, you can use the touch function I provided as is.

If you want tap events to drop through an object but you want that object to catch touch events, just listen for tap events on the object below and not on the top object.

If you want touch events which move within a certain threshold distance and then drop through to the object below once the threshold is met, you want to be using the method I mentioned of releasing the focus and changing the phase of the event, then returning false. This should effectively cause a “pass-through” of the touch even after it has been “acquired” by the top object.

It’s a bit complex at times and the simplest solution is to code for your particular situation. I’ve tried writing generic touch/gesture handling libraries a number of times and it’s generally not practically because of the huge range of situations. And that’s without multi-touch enabled.

Hey @horacebury,

Great job with this library! I am looking for a way to change scene by swiping anywhere on the screen and get a ‘slide’ transition between scenes. I only have a few button in each scene to be tapped, that’s it for in-scene interactive elements.

How would you suggest to implement your work to get this result? Being new at programming I’d need some help to figure out where to put the files/code you provided.

Thanks a lot for the amazing resource you’re offering.

I’m using iOS7 style, the db is refreshed on show event “will” so the back swipe transition is disturbed. I can move it to “did” and it should be fine.

I don’t like to use tap in general (highlighting on begin phase etc) so my modification is an easy fix for my use case and allows touches with no problem.