Closed Bug 212291 Opened 22 years ago Closed 22 years ago

JavaScript: onMouseOut processed before mouse click event is handled?

Categories

(Core :: DOM: Events, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 102578

People

(Reporter: sjaensch, Assigned: saari)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5a) Gecko/20030707 Mozilla Firebird/0.6 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5a) Gecko/20030709 Reproducible: Always Steps to Reproduce: 1. Go to the URL mentioned above. 2. Hover with the mouse over the first menu entry 'Produkte'. A menu appears. 3. Click on any of the menu entries. Actual Results: The menu disappears, but the URL from the link is not loaded. Expected Results: The link should be loaded. The code that matters is as follows: <div id="produktbar" style="visibility: hidden;" onmouseover="showMenu();" onmouseout="hideMenu();"> <a href="http://www.intosite.de/frl/produkt.php?id=0"><b>Einbau-Downlights</b></a> <a href="http://www.intosite.de/frl/produkt.php?id=1">Aufbau-Downlights</a> ... My wild and uneducated guess is that under Linux, the onmouseout event of the parent div is processed before the mouse click is fully evaluated. Click on any of the menu entries and hold down the mouse button. As soon as you click the menu disappears (onmouseout event was processed). But link clicks are processed AFTER you release the mouse button, just check on regular links. By that time there is no link where you just clicked. Don't try to click on one of the lower menu entries or you will accidentally load the link that is UNDER the menu! This bug is not present under Windows (tested with a recent Firebird build as well as IE6). It does occur under Linux with a current Mozilla nightly, a self-compiled Firebird with Xft2 support and with Netscape 7.1.
Removing the onmouseout from the parent div lets you click the menu entries, but obviously breaks the site as the menu will not disappear again once shown.
What window manager are you using? Some are known to send bogus mouseout events on clicks..
I'm using kwin from KDE 3.1.1 as shipped with SuSE Linux 8.2. You're right, I just tested with fvwm2 and everything works just fine. Do you know if this is fixed in KDE 3.1.2 or in HEAD or do you know if there is a corresponding bug filed in the KDE bug database? Is there anything else I can do to work around this bug besides switching window managers?
Not sure; I've cced blizzard because he's more familiar with the problem and may have those answers....
> Is there anything else I can do to work around this bug besides switching window > managers? switch to sloppy focus. this is a dupe of bug 102578
*** This bug has been marked as a duplicate of 102578 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.