Closed Bug 541002 Opened 16 years ago Closed 15 years ago

Scroll event will be raised if scroll event is bound after the scrollTop is changed.

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: jantasy, Unassigned)

Details

(Whiteboard: [CLOSEME 2011-1-30])

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729) Scroll event will be raised if scroll event is bound after the scrollTop is changed. Reproducible: Always Steps to Reproduce: 1. Add two divs to create a vertical scrollbar, codes as bellow: <div id="div1" style="width:30px;height:200px;overflow-x:hidden;overflow-y:scroll"> <div style="width:30px;height:300px"> </div> </div> 2. Add a button, and its click event handler is: var div1 = document.getElementById("div1"); div1.scrollTop = 20; div1.addEventListener("scroll", test1, false); 3. Run this page. 4. Click the button. Actual Results: function test1 will be invoked. Expected Results: function test1 will not be invoked.
Reporter, are you still seeing this issue with Firefox 3.6.13 or later in safe mode? If not, please close. These links can help you in your testing. http://support.mozilla.com/kb/Safe+Mode http://support.mozilla.com/kb/Managing+profiles You can also try to reproduce in Firefox 4 Beta 8 or later, there are many improvements in the new version, http://www.mozilla.com/en-US/firefox/all-beta.html
Whiteboard: [CLOSEME 2011-1-30]
It still exists in FF3.6.13 and FF4Beta8 and FF4Beta8(SafeMode). I cannot run FF3.6.13 safe mode. I have tried the methods on http://support.mozilla.com/kb/Safe+Mode .
No reply, INCOMPLETE. Please retest with Firefox 3.6.13 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.