iPad horizontal swipe navigation
How do i accomplish this?
I have 10 images and if i swipe to the left or right i wan the next or previous one to appear.
Is there a view allready to do this?
2 Answers
-
I got this working with createScrollableView.
Now i can swipe left and right, but what if i want to swipe up and down?
Is there a way to do this? -
Add event handler to view, detect the swipe direction - X or y then change image accordingly. But last time i checked, swipe event trigger multiple times, so you might want to a look into touchstart and touchend to imitate swipe for the directions. That's what i used to create a much stable scrollable image gallery.