Closed
Bug 295831
Opened 20 years ago
Closed 20 years ago
DOMMouseScroll reports incorrect dom node when over a "SELECT" element (firefox on linux only)
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: avih, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 When registering "DOMMouseScroll" event, and scrolling the mouse wheel over a "SELECT" or "OPTION" element, then the event handler doesn't get the correct node from the event. This only happens with firefox on linux (it's ok with firefox on win32 and with mozilla on linux) The trigger for this issue was that linux users reported that my extension (SmoothWheel) doesn't work well on drop down boxes. I've issued a fix but the main issue is that it behaves differently on linux/windows. avih Reproducible: Always Steps to Reproduce: 1. enter the next XUL code, save it as "test.xul" and open it with firefox (1.04) on linux: -------------------------------------- <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <dialog id="testdomscroll" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml" onload="myonload();" > <script type="application/x-javascript"> function myonload(){ addEventListener("DOMMouseScroll", captureevent, false); } function captureevent(e){ alert("target dom node name: "+e.explicitOriginalTarget); } </script> <html:select> <html:option>1111</html:option> <html:option>2222</html:option> <html:option>3333</html:option> </html:select> </dialog> -------------------------------------- 2. move the mouse cursor over the (closed) "drop-down" list and scroll thw wheel 3. click the "drop-down" box to show the available options. move the mouse cursor over the opened list and scroll the mouse wheel. Actual Results: after step 2: displayed: "target dom node name: [object XULElement] after step 3: displayed: "target dom node name: [object HTMLSelectElement] Expected Results: after step 2: should display: "target dom node name: [object HTMLSelectElement] after step 3: should display: "target dom node name: [object HTMLOptionElement]
Updated•20 years ago
|
Assignee: nobody → events
Component: General → DOM: Events
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → 1.7 Branch
Comment 1•20 years ago
|
||
Yes, the bug exists with linux firefox 1.0.x (although it worksforme with suite 1.7.8). But it's been fixed since then (worksforme with current trunk firefox) and 1.7.x branch of gecko is only receiving security fixes. resolving WORKSFORME
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•