Swipe right or swipe down => previous slide.
Swipe left or swipe up => next slide.
Quite important for the usability ;-)
Created attachment 113267 [details]
The parts display is ugly if you're using a tablet attached to a projector (wired or wireless) for your presentation. It's also difficult to navigate.
I've tried to implemented this and for now it seems to work fine on my device.
Although, given that layerView also handles touchEvents in its own way, on top of which we are adding editing functionality, it might be a good idea to separate viewing/editing mode for documents?
Siqi - this is some great work, thanks for that [& sorry for re-opening - was not sure if it is best to create a follow-up report, or write here - but as you posted a question here, decided for re-opening :-)]
Turns out that the behavior feels a bit awkward when the slide is zoomed - can you please make the "swipe left to switch to the next slide" work only when the rightmost edge of the slide is visible, and similarly "swipe right to switch to previous" only when the leftmost edge of the slide is visible? Currently it is hard to scroll in a zoomed in slide, as that switches slides too easily.
Wrt. the touchEvents and layerView - cannot you handle the swipe directly in the layerView then, to avoid such a conflict?
Wrt. the commit itself - would be great to do commit messages in form of
tdf#89174: Implement swiping gesture as a generic event.
The commits are then automatically reported to the bug you mention in the commit message :-)
Thanks again - I've just pushed your changes to production, should appear in the new .apk soon.