I noticed that there are two types of listeners, some are set on document, by using document.addEventListener(..., others are set on the elements to bee zoomed, by using massAddEventListener($zoom....
While this makes the zooming work, I noticed that after calling zoom it breaks other scrolls in my web pages, since probably the document listeners "intercept" the event and prevent it to be used to scroll.
I think I've fixed this by setting all the event listeners using massAddEventListener($zoom... instead of document.addEventListener(..., which of course is not the same, but the zoom still works and I no longer have problems related to scrolling on mobile.
If the listener on document are considered important maybe this behaviour could be managed via a setting value?
I noticed that there are two types of listeners, some are set on
document, by usingdocument.addEventListener(..., others are set on the elements to bee zoomed, by usingmassAddEventListener($zoom....While this makes the zooming work, I noticed that after calling
zoomit breaks other scrolls in my web pages, since probably thedocumentlisteners "intercept" the event and prevent it to be used to scroll.I think I've fixed this by setting all the event listeners using
massAddEventListener($zoom...instead ofdocument.addEventListener(..., which of course is not the same, but the zoom still works and I no longer have problems related to scrolling on mobile.If the listener on document are considered important maybe this behaviour could be managed via a setting value?