Subscribe for updates on posts
Be the first to read the latest news

Firefox overflow hidden prohibits event firing on other elements

June 19th, 2006 by Marius Hanganu in 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


You might also like

Cursor disappears in Firefox Firefox has this annoying problem of the cursor caret becoming invisible sometimes. For example, when...
TechTalks@Tremend with Mircea Marghidanu, lead developer at Unity3D Mircea Marghidanu, lead developer at Unity3D was our guest at Tech Talks@Tremend for a presentation on...
Firefox Extensions To make your browsing experience a pleasure and also benefit from a great development tool, Firefox is...
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...
.

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.