Hi there,
I have arrows to use to move between pages. Is it possible to disable the swipe option so only the arrows can be used to transition between pages.
This is my code at the moment (with the swipe option working)...
Yes - setting a swipe property of a page object to an empty array - or use the disable() method or active property.
new Pages([{page:page1, swipe:[]}, page2, page3, page4], "slide").addTo()
// or
new Pages([page1,page2, etc.], "slide").addTo().disable();
// or
const pages = new Pages([page1,page2, etc.], "slide").addTo();
pages.active = false;
Yes! Coding with ZIM is very fun. Glad you are here, ask any questions you come across!