Closed Bug 264588 Opened 20 years ago Closed 20 years ago

Middle mouse button for scrolling is not caught by onscroll event handler

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 189308

People

(Reporter: lance, Assigned: bugzilla)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10.1

When linking javascript to a onscroll message handler the javascript function
doesn't get called if the user uses the middle mouse button to scroll.  Only if
the user grabs the scroll bar does the javascript event handler get called.

Reproducible: Always
Steps to Reproduce:
<html>
<script language="javascript">

	function message() {
		alert('scrolled')
	}
</script>
<body onscroll="javascript:message()">
Some text<br>
Some text<br>
Some text<br>
Some text<br>
Some text<br>
Some text<br>
Some text<br>

Some text<br>
Some text<br>
Some text<br>
Some text<br>
Some text<br>
Some text<br>
Some text<br>
Some text<br>
Some text<br>

Some text<br>
Some text<br>
Some text<br>
Some text<br>
Some text<br>
Some text<br>
Some text<br>
Some text<br>
Some text<br>

Some text<br>
Some text<br>
</body>
</html>

Actual Results:  
you'll see a messagebox when the user grabs the scrollbar
but now when they use the middle mouse scroll button

Expected Results:  
cmon!
Attached file Test case
The javascript function only gets called when the user scrolls with the scroll
bar - keyboard, scrolling with the mouse wheel or pressing the mouse wheel also
don't work.

*** This bug has been marked as a duplicate of 189308 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: