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

touch_handler: Fix scroll up behavior on Firefox Android #2054

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

chenxiaolong
Copy link
Contributor

When the touchmove listener is registered with passive: false, scrolling up on Firefox Android only works every other attempt. When scrolling breaks, the touchmove callback is never invoked.

The passive flag was originally set to false as part of a fix to prevent vertical scrolling while swiping: 3f31744. Setting passive to true doesn't seem to negatively affect that in both Firefox and Chrome, but fixes the scoll up behavior on Firefox.

Fixes: #2053


Do you follow the guidelines?

When the touchmove listener is registered with passive: false, scrolling
up on Firefox Android only works every other attempt. When scrolling
breaks, the touchmove callback is never invoked.

The passive flag was originally set to false as part of a fix to prevent
vertical scrolling while swiping: 3f31744.
Setting passive to true doesn't seem to negatively affect that in both
Firefox and Chrome, but fixes the scoll up behavior on Firefox.

Fixes: miniflux#2053

Signed-off-by: Andrew Gunnerson <[email protected]>
@fguillot fguillot merged commit 344a237 into miniflux:main Sep 8, 2023
15 checks passed
@chenxiaolong chenxiaolong deleted the passive branch September 8, 2023 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Scrolling up only works every other attempt when gestures are enabled on Firefox Android
2 participants