Skip to content

document event listeners break mobile pages scroll #7

Description

@andreagobetti

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions