Closed Bug 311941 Opened 19 years ago Closed 19 years ago

Tweak mousewheel sysnumlines values to be correct

Categories

(Firefox :: Shell Integration, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mark, Assigned: mark)

Details

(Keywords: fixed1.8)

Attachments

(1 file, 1 obsolete file)

The sysnumlines settings in firefox.js are incorrect.  sysnumlines should only
be true when the behavior is to scroll the document (action 0) and the delta
that comes from the system's event is desired.

0 = scroll lines, 1 = scroll pages, 2 = history, 3 = text size

Right now, on the Mac:
     withnokey.action = 0, sysnumlines = true  (OK)
    withaltkey.action = 0, sysnumlines = false (OK)
withcontrolkey.action = 2, sysnumlines = true  (should be false)
   withmetakey.action = 3, sysnumlines = true  (should be false)
  withshiftkey.action = 0, sysnumlines = false (should be true)

On Windows:
     withnokey.action = 0, sysnumlines = true  (OK)
    withaltkey.action = 0, sysnumlines = false (OK)
withcontrolkey.action = 3, sysnumlines = true  (should be false)
   withmetakey.action = 0, sysnumlines = true  (OK)
  withshiftkey.action = 2, sysnumlines = true  (should be false)

The preferences in app/profile/firefox.js should be adjusted accordingly.
The event state manager doesn't use the magnitude for history and text size. 
The only thing here that's required is the Mac shift key fix.  The other
bindings are less critical, but they still should be fixed for correctness. 
Users who wish to invert the axis for these events should be able to do so by
setting numlines to -1 and shouldn't need to touch sysnumlines.
Flags: blocking1.8rc1?
Attached patch Fix (obsolete) — Splinter Review
This fixes the problem by flipping the sysnumlines setting where needed.  It
also explicitly sets sysnumlines to false for the alt key binding, to make it
clear that the behavior is intended, rather than relying on the value from
all.js.
Attachment #199087 - Flags: review?(bugs.mano)
Attached patch Fixed fixSplinter Review
Oops.
Attachment #199087 - Attachment is obsolete: true
Attachment #199088 - Flags: review?(bugs.mano)
Attachment #199087 - Flags: review?(bugs.mano) → review-
Comment on attachment 199088 [details] [diff] [review]
Fixed fix

r=mano
Attachment #199088 - Flags: review?(bugs.mano) → review+
Attachment #199088 - Flags: approval1.8rc1?
Fixed on trunk.  This should be taken on the branch to clean up the shift on the
Mac situation introduced in bug 309730.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Attachment #199088 - Flags: approval1.8rc1? → approval1.8rc1+
Flags: blocking1.8rc1? → blocking1.8rc1+
Fixed on the branch.
Keywords: fixed1.8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: