Closed
Bug 279906
Opened 20 years ago
Closed 19 years ago
drag from inside an absolute positioned div to another absolutely positioned div fails to continue mouseover events
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: enrique, Unassigned)
References
(Depends on 1 open bug)
Details
(Keywords: testcase)
Attachments
(1 file)
1.57 KB,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 In the page below, I never get mouseover events when starting my select in one div, and going to the second div. I have onmouseover handlers for both the document.body, and an enclosing div. Without selecting, I get the mouseover events, it's only when I start a select from inside one of the absolutely positioned divs. After trolling through the bugs, I thought a comment in bug 270683 might have sited this problem as well. Reproducible: Always Steps to Reproduce: 1.open page 2. start a drag over the text in one of the Enclosing divs 3. continue dragging so that the mouse is over the other enclosing div. 4. In the log you will see events for the first set of divs, but not for the second. Actual Results: The log does not show mouseover events when the drag went into the second div. Expected Results: given mouseover events when entering the second div.
oops, forgot the code. Here is is: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>filterPanel.html</title> </head> <body> <div id="div1" style="width:300px; position:absolute; top:0; left:0;z-index:300; background-color:orange">Div 1 <div id="enclosing1" style="width:100%;position:absolute; top:0; left:0; z-index:300; background-color:white">Enclosing1 <div id="div2" style="z-index:auto; background-color:green">Div 2</div> <div id="div3" style="z-index:auto; background-color:red">Div 3</div> </div> </div> <div id="div4" style="width:300px;position:absolute; top:0; left:300;z-index:300; background-color:pink">Div 4 <div id="enclosing2" style="width:100%;position:absolute; top:0; left:0; z-index:300; background-color:white">Enclosing2 <div id="div5" style="z-index:auto; background-color:yellow">Div 5</div> <div id="div6" style="z-index:auto; background-color:blue">Div 6</div> </div> </div> <div id=log style="width:100%; position:absolute; top:100px; left: 0px;border:1px solid black; height: 500px;overflow:scroll">Log</div> </body> <script> function myonmouseover (event) { var ev = event? event: window.event; target = ev.target? ev.target: ev.srcElement; var log = document.getElementById("log"); log.innerHTML = log.innerHTML + "<br>" + target.id; } document.body.onmouseover = myonmouseover; document.getElementById("enclosing1").onmouseover = myonmouseover; document.getElementById("enclosing2").onmouseover = myonmouseover; </script> </html>
could you make this into a bugzilla attachment please?
Comment 4•19 years ago
|
||
I tried the testcase with Mozilla 1.8b2 build 2005050305 under XP Pro SP2 and I get the expected results. WORKSFORME I get different results when trying with Firefox 1.0.3 rv: 1.7.7 build 20050414: when I select/drag from div2 to div 5, the log show "div2 Enclosing1" and not "div2 div5". I get "div2 div5" with Mozilla 1.8b2 I'd say the bug was fixed on the trunk, possibly (a hunch) by the fix on bug 291222.
Comment 5•19 years ago
|
||
From what I can see, this bug was fixed on the trunk but not in the 1.7 branch. The provided testcase works in Mozilla 1.8b2 build 2005051805 under XP Pro SP2. Resolving as WORKSFORME
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
Whiteboard: WFM
You need to log in
before you can comment on or make changes to this bug.
Description
•