Clicking on horizontal scrollbar generates JS event




Event Handling
16 years ago
9 years ago


(Reporter: Cesar Eduardo Barros, Unassigned)



Firefox Tracking Flags

(Not tracked)





16 years ago
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7+) Gecko/20011228
BuildID:    2001122808

The dialog in the page should change only if you click on it. However, if the
horizontal scrollbar (which appears at 800x600) is clicked (to move the page
left or right), the dialog also changes, which means the page's script is
receiving a click event where it shouldn't.

Reproducible: Always
Steps to Reproduce:
1.Load the page with JS enabled
2.Click until the scrollbar appears (it'll happen when the fourth character
appears on the screen)
3.Click in the right arrow at the horizontal scrollbar

Actual Results:  The dialog changes, like when you click anywhere on the screen.
Aditionally, if you move the "elevator" (is that the right name?) left or right,
the scrolling is jumpy.

Expected Results:  The JS shouldn't be able to detect the clicks on the scrollbar

The dialog changes when an arrow key is used too, but that might be because of a
normal event handler.

Comment 1

16 years ago
If it's relevant, the skin is Modern.
confirming, but how do the browser viewport scrollbars differ from scrollbars 
on, say, elements inside the page?  Should clicks on scrollbars never trigger 
click events?
Ever confirmed: true

Comment 3

16 years ago
I agree, scrollbars should only send scroll events.


16 years ago
OS: Linux → All
Hardware: PC → All
Target Milestone: --- → mozilla1.2


16 years ago
QA Contact: madhur → rakeshmishra


16 years ago
QA Contact: rakeshmishra → trix

Comment 4

15 years ago

joki is no longer here
Assignee: joki → saari
QA Contact: trix → ian

Comment 5

12 years ago
Altrough original bug's test case is gone, I can confirm this bug in FF 2.0. Click on element's vertical scroll bar emits JavaScript event thus making scrolling (with elevator?) impossible. As scroll bars are part of UI and not page itself, events targeting UI should not be visible from JavaScript.

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20060601 Firefox/2.0 (Ubuntu-edgy)
Assignee: saari → nobody
QA Contact: ian → events
You need to log in before you can comment on or make changes to this bug.