Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on chrome with presentation mode scroll #11735

Closed
mgrigis opened this issue Mar 23, 2020 · 0 comments · Fixed by #11736
Closed

Error on chrome with presentation mode scroll #11735

mgrigis opened this issue Mar 23, 2020 · 0 comments · Fixed by #11736
Labels

Comments

@mgrigis
Copy link
Contributor

mgrigis commented Mar 23, 2020

On chrome with presentation mode active, when the user scroll we have an error in the console

'Unable to preventDefault inside passive event listener'

It bring some random behavior (in my in integration of the viewer when the user scroll we reache the next page and a little more, and the user cannot see the full content of the pdf because it never display).

I find a patch, I don't know if it is the good way to do it.
I add this in pdf_presentation_mode

'window.addEventListener("wheel", this.mouseWheelBind, {passive: false});'

And all work fine in chrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants