Closed Bug 1587144 Opened 5 years ago Closed 5 years ago

using spacebar on (some?) articles causes the page to scroll too far because of sticky position header

Categories

(Core :: Layout: Scrolling and Overflow, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1308286

People

(Reporter: jesup, Unassigned)

References

()

Details

Perhaps related to the banner bar at the top? I've seen this on quite a few pages, where it scrolls 1/2-1 line too far, requiring me to hit up-arrow after scrolling down each time.

We have code[1] to adjust for this case when the top/bottom bar is fixed position. In this case the top bar is sticky and the current code doesn't handle that. We'd need to extend the current code to check if there are sticky frames for the current scroll frame, if they are in "stuck" mode (acting like fixed pos) and they cover the majority of the width of the scroll frame. I remember this coming up before (years back), so there is probably another bug on file.

[1] https://searchfox.org/mozilla-central/rev/7cc0f0e89cb40e43bf5c96906f13d44705401042/layout/generic/nsGfxScrollFrame.cpp#4436

Summary: using spacebar on (some?) articles causes the page to scroll too far → using spacebar on (some?) articles causes the page to scroll too far because of sticky position header

(In reply to Timothy Nikkel (:tnikkel) from comment #1)

I remember this coming up before (years back), so there is probably another bug on file.

Bug 1308286?

Yes, that's the one, thank you.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.