Closed Bug 1135538 Opened 9 years ago Closed 9 years ago

Disallow scrolling if the user touches down on a fixed-position item

Categories

(Core :: Panning and Zooming, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: kats, Unassigned)

References

Details

STR:
1. Load http://chrislord.net/files/mozilla/fixed.html in the B2G browser
2. Put your finger down on say the yellow box and start panning the page

Expected:
- no panning

Actual:
- panning

The reason "no panning" is expected is the degenerate case of bug 1134642, where there is a position-fixed element occupying the entire visible screen. In this case when the user "pans" we don't really want to pan the ancestor scrollable element which is behind the position-fixed element.
After thinking about this some more I'm not sure it's such a good idea. For one thing Fennec and Chrome on Android don't seem to do this, so it might result in unexpected behaviour in other places. Another reason is that if we do it for fixed-position items we should probably do it for sticky-position items, but only when they're "stuck", which seems kind of complicated.
WONTFIX for now but we can revisit this if there are strong arguments in favor of doing it.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.