Open Bug 1903180 Opened 5 months ago Updated 4 months ago

"Pull to refresh" is triggered on reddit.com while the modal dialog "See this post in Reddit app ..." is visible

Categories

(Web Compatibility :: Site Reports, defect, P3)

Unspecified
Android

Tracking

(Not tracked)

People

(Reporter: hiro, Unassigned)

References

(Blocks 2 open bugs, )

Details

(Keywords: webcompat:contact-ready, webcompat:needs-sitepatch, webcompat:platform-bug)

User Story

platform:android
impact:annoyance
configuration:general
affects:all

I am splitting the reddit.com case out from bug 1882040, it's slightly different for me. Indeed the reddit case will also be fixed by blocking pull-to-refresh if <body> has overflow-y:hidden, I have a different perspective.

From bug 1882040 comment 19

Here's another one: https://www.reddit.com/r/firefox/comments/1de7bu1/were_the_firefox_leadership_team_at_mozilla_ama/
When the page first loads, and reddit shows the modal overlay to use the app, we allow pull-to-refresh and Chrome doesn't. I was trying to make the modal disappear by swiping it down, and accidentally refreshed the page.
While the modal is visible, the body element has style="pointer-events: none; overflow: hidden;".

(In reply to Hiroyuki Ikezoe (:hiro) from comment #0)

While the modal is visible, the body element has style="pointer-events: none; overflow: hidden;".

Here, they explicitly set pointer-events: none , I don't quite understand why they need it, I guess what they actually wanted to do is touch-action: none? If they used touch-action: none, pull-to-refresh is in fact prevented.

Severity: -- → S4
User Story: (updated)
Depends on: 1902313
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.