Closed Bug 175380 Opened 22 years ago Closed 20 years ago

PageDown/PageUp leave too much in common between "pages"

Categories

(Core :: Web Painting, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla1.3alpha

People

(Reporter: dbaron, Assigned: dbaron)

Details

(Whiteboard: [patch])

Attachments

(1 file, 1 obsolete file)

This has been annoying me for years (I mean it), and I'm finally filing a bug
about it, which I've been meaning to do for years.

I use Mozilla at a default font size and window size that allows me over 50
lines of text in a window.  PageUp and PageDown cause Mozilla to scroll by 90%
of the window size.  This means there are about 5 lines of text that are present
on the screen both before and after the PageUp/PageDown.  This has often made it
hard for me to find my place when I move up and down.

The simple solution to this, is, I think, to bound the scroll amount in
nsScrollPortView::ScrollByPages so that it is never less than one page minus two
or three lines at the default font size.  I'd like to do this, but I'm
interested in other people's opinions on the topic.  I'll probably post to
n.p.m.ui at some point about this...

(I realize there are much nicer solutions such as showing and hiding a box where
the previous position on the page was or temporarily opaquely-greying out the
part that was already seen, but they're harder.  This is a trivial patch.)

Any other opinions on this?
Attached patch patch (obsolete) — Splinter Review
The changes to nsSelection.cpp are wrong, and perhaps even uunecessary.
Status: NEW → ASSIGNED
Priority: -- → P1
Whiteboard: [patch]
Target Milestone: --- → mozilla1.3alpha
Attached patch patchSplinter Review
This is updated to the trunk, and doesn't break PgUp/PgDn when the scroll view
is at the start/end but the caret isn't yet (which the previous patch did, I
think).
Attachment #103373 - Attachment is obsolete: true
Attachment #166643 - Flags: superreview?(roc)
Attachment #166643 - Flags: review?(roc)
Attachment #166643 - Flags: superreview?(roc)
Attachment #166643 - Flags: superreview+
Attachment #166643 - Flags: review?(roc)
Attachment #166643 - Flags: review+
Fix checked in to trunk, 2004-10-24 14:05 -0700.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: