Looking for software experts?
Need an expert advice on software development? Need consulting work done in time and at high standards? Tremend has the right solution for you.

We can provide expertise in:
  •    » high traffic and complex content website infrastructures using Java, PHP or .NET. More here ...
  •    » mobile applications for iPhone, Android or J2ME. More here ...

For an enquiry, send an email to contact [at] tremend [dot] ro.

Firefox overflow hidden prohibits event firing on other elements

June 19th, 2006 by Marius Hanganu in HTML, Javascript

It seems that for Firefox, the style overflow hidden stops firing onmousemove or onmouseover events. Not sure if there is any standard for this behavior and if Firefox implements it or not. My guess is that there’s probably no standard, or if it is, it should be changed. Take a look at this small demo.

The demo page handles onmousedown, onmouseup, onmousemove, onmouseover events. What it happens basically is that when you have two DIVs with NO overflow hidden style, the events are fired correctly (onmouseover when moving your mouse over each one of the DIVs, onmousemove when moving the mouse over each DIV).

But when setting overflow=hidden, suddenly onmousemove and onmouseover are no longer fired when moving your mouse over the other DIV. Instead, Firefox keeps firing onmousemove with the same source, no matter where you are on the page.

Not too many references on this on the web. Just a question on dojo’s mailing list about it: http://dojotoolkit.org/pipermail/dojo-interest/2006-April/007137.html

DZoneGoogle ReaderYahoo MessengerRedditEmailDelicious

Related posts

  • Cursor disappears in Firefox
    Firefox has this annoying problem of the cursor caret becoming invisible sometimes. For example, when showing up a div, the textboxes inside that div don't have the cursor. You can edit them, but you can't...
  • Firefox Extensions
    To make your browsing experience a pleasure and also benefit from a great development tool, Firefox is key. Here is my list of must-have extensions: - DOM Inspector - inspect browser dom, really good...
  • A href vs onclick – performance test – IE6 vs IE7 vs FF3 vs FF2 vs Chrome vs Opera vs Safari
    While optimizing some HTML code, I recently came across the question: when rendering anchors, which of the href and onclick are rendered quicker by the browsers. To find out, I created two files, each...
  • DWR, JSON and IE6: beware keywords
    Spent quite a bit of time investigating an "IE bug". What happened: a particular AJAX request would work fine in Firefox but nothing would happen in IE6. Obvious steps were to monitor request and response...
  • Spreadsheet dojo widget
    Update3: We're back to our own hosting. Update2: Razvan Dragomirescu was kind enough to mirror the spreadsheet widget. Click here to access the demo. Thanks Razvan! Update: Due to high traffic the demo...
.

2 Responses

  1. Tremend Tech Blog » Blog Archive » Firefox overflow hidden prohibits event firing on other elements - Part 2 Says:

    [...] Tremend Tech Blog The best scientists are poets, the real engineer is an artist (Sue Birchmore) « Firefox overflow hidden prohibits event firing on other elements [...]

  2. Tony Says:

    I know this is an old post, but I want to add that as of April 24, 2007, this problem still exists in both Firefox 1.5 and Firefox 2.0

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.