Open
Bug 276142
Opened 20 years ago
Updated 2 years ago
XUL scrollbar element does not work correctly on Mac
Categories
(Core :: XUL, defect)
Tracking
()
NEW
People
(Reporter: bugs, Unassigned)
References
Details
(Keywords: testcase)
Attachments
(1 file)
|
359 bytes,
application/vnd.mozilla.xul+xml
|
Details |
XUL scrollbar elements do not have the correct functionality on Mac. Scrollbar elements display correctly but they do not fire oncommand events nor does the thumb position correctly, either by dragging or click the increment/decrement buttons.
The example page attached use a scrollbar element directly from xulplanet.
Normally I try to fix these types of bugs in the associated XBL. In this particular case I can not find anywhere in the chrome css (any of them) where the scrollbar.xml#scrollbar binding is actually bound to scrollbar elements. If someone could point me in the right direction I would be happy to try and resolve this myself.
Comment 3•20 years ago
|
||
Neil, any idea?
Comment 4•20 years ago
|
||
I wasn't aware that scrollbars are supposed to fire command events, although the scrollbarbuttons may do but only because they are buttons. Additionally, the Mac Classic theme handles scrollbars natively, although there is some XBL glue, see: http://lxr.mozilla.org/seamonkey/source/xpfe/global/resources/content/bindings/nativescrollbar.xml
Only the buttons fire oncommand events, and only in windows. All platforms should operate the same, either fire the events or not. Also what event if any should be fired when the thumb position is changed? Not alot of use as a stand alone widget with out an event.
Comment 6•20 years ago
|
||
Confirming for FreeBSD, where the buttons fire 'oncommand' events, too. You may use 'ondraggesture' to fire events dragging the scrollbar thumb (and of course 'onclick' to fire when clicking on the scrollbar tray). Shouldn't 'oncommand' fire in all those three cases?
Keywords: testcase
Comment 7•20 years ago
|
||
Unfortunately we don't have a proper scrollbar API. As far as it goes the only currently correct way to use a scrollbar is to inspect the curpos attribute.
Updated•19 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.widgets
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•