Closed Bug 549669 Opened 14 years ago Closed 14 years ago

Pressing control key in the middle of a scroll changes font size.

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 574663

People

(Reporter: bwinton, Unassigned)

Details

STR:
Open a page in Firefox
Start to scroll with magic mouse, with momentum turned on.
While it is scrolling with momentum, without your finger on the mouse, press and hold the ctrl key

Observed behaviour:
The page starts scrolling, then stops and the text changes size.

Expected behaviour:
The page continues scrolling.


(The page I used was https://wiki.mozilla.org/Thunderbird:Thunderbird3.1:Driving_Scratchpad, but it seems like any page would do.)
I imagine this won't be easy to fix if the "momentum" is handled entirely on the mouse driver side (i.e. we're just receiving multiple distinct scroll events).
There are multiple points in time when we should "stop" any currently existing momentum, such as when closing or switching tabs. Right now if you scroll on one page and then quickly switch tabs using the keyboard things look very strange.

Does the OS expose any APIs for clamping any currently existing momentum to 0?

Basically any time a key is pressed it would be nice to clamp. Of course, you could definitely argue that the OS should do that.
The issue that this bug was originally filed about was fixed in bug 574663, so I'm marking this as a duplicate.

(In reply to comment #2)
> There are multiple points in time when we should "stop" any currently existing
> momentum, such as when closing or switching tabs.

That's bug 605751.

> Does the OS expose any APIs for clamping any currently existing momentum to 0?

No, but we can do the clamping ourselves by ignoring subsequent momentum scroll events.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.