Is it Possible to make a Swipe Directly Back to the First Slide or Back to Menu?

A: Yes it is if you add the following in the last slide;  app.addEvent('swipeleft', function(event) {app.loaded.scrollToStart(), ele);

Or

add global event listener: document.addEventListener('swipeleft', function(event) {app.loaded.scrollToStart(); })

If using the global listener you need to check that they are at the last slide.

You can do that by: if (app.loaded.getIndex() === app.loaded.length - 1) { app.loaded.scrollToStart() }

Was this article helpful?
0 out of 0 found this helpful