Open Bug 457853 Opened 12 years ago Updated 2 years ago
Scroll multiple fires
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:126.96.36.199) Gecko/2008092417 Firefox/3.0.3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:188.8.131.52) Gecko/2008092417 Firefox/3.0.3 I had attached a mouse scroll listener to a containing div. When it fires the elements with in the container div are completely redrawn. In firefox after the redraw was complete the mousescroll event fired again, or the previous event was still active, not sure which. If I stopped redrawing the contents and instead done something like increment a value elsewhere on the page, the event would only fire once as expected. Only the firefox browser seemed to react like this, even internet explorer only fires once. I hacked a fix to the problem by checking if the event had the same timestamp as the one just before, this seems to work and possibly suggest the same event is retrigging, on a redraw. Reproducible: Always Steps to Reproduce: 1. Attach DOMMouseScroll to a div. 2. Handle event by redrawing contents of div. 3. Attach some way of monitering how many time the handler is being called Think I've explained as best I can. Can't show you my actual code due to nature of what I'm working on.
Component: General → DOM: Events
Product: Firefox → Core
QA Contact: general → events
Version: unspecified → 1.9.0 Branch
Without a testcase (minimal I hope), it is really hard to say what is going on.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.