Open Bug 564021 Opened 15 years ago Updated 3 years ago

Javascript preferences should have an option to disable binding to scroll events

Categories

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

enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: binford2k, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.29 Safari/533.4 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 There are a few valid reasons to bind to scroll events, such as zooming in a map. However, almost every time this happens, it is by ACCIDENT and is NOT what I wanted to do. I would gladly lose the ability to zoom a map, or scroll a div with sexed up widgets with the wheel if it meant that I could actually scroll the page without having to be ridiculously careful about where I put the mouse cursor. A better solution perhaps would be to implement some sort of timeout. Only send the scroll events to a div after it has had focus for greater than X ms, or when the page is not currently scrolling. Reproducible: Always Steps to Reproduce: 1. Load the example page 2. Scroll the page 3. Curse like hell when the page stops scrolling and the map zooms out to galaxy level because the cursor happened to be over the embedded map Actual Results: The page stopped scrolling and the map zoomed out to galaxy level because the cursor happened to be over the embedded map Expected Results: The page should have continued scrolling.
Component: Event Handling → User events and focus handling
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.