I am wondering is that possible to add an event listener to a layer and then have it trigger an event? eg: a button that will trigger a SwipeRight event? Something like elem.dispatchEvent(event);
Tip: Whenever you feel like doing this, break out your SwipeRight handler into a separate function and have both event handlers call that function instead. Having events trigger other events quickly gets messy. (Sorry for non-answer 😬)
I wonder if there are any PageComponent examples with on screen "prev", "next" buttons that will trigger the change of the current page.