Last Comment Bug 620513 - Incorrect handling of onmouseover event while left mouse button is down. Actual for divs with "overflow:hidden" style.
: Incorrect handling of onmouseover event while left mouse button is down. Actu...
Status: UNCONFIRMED
:
Product: Core
Classification: Components
Component: Event Handling (show other bugs)
: 1.9.2 Branch
: x86_64 All
: -- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
Mentors:
http://dimengine.ru/
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-20 13:46 PST by Andrei
Modified: 2011-04-26 11:50 PDT (History)
4 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Andrei 2010-12-20 13:46:37 PST
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13

The idea is to press on one of the divs and then mark all other divs moving mouse over them holding the left mouse button down.

The first click calls a function that sets variable mousedown=true and marks the div. Then moving mouse over other divs calls a onmouseover event that checks if mousedown is true and, if so, it marks these divs too.

It works great, but setting overflow:hidden fot these div break the functionality. Was checked under FF 3.6.13 under Windows 7 x64 and Kubuntu 10.10 x86_64.

There are 2 links at http://dimengine.ru/ to check the issue.

Reproducible: Always

Steps to Reproduce:
1. Follow one of the links at http://dimengine.ru/
2. Press left mouse button on one of the divs.
3. Hold the button and move mouse over other divs.
Actual Results:  
onmouseover event isn't handled while overflow:hidden is set

Expected Results:  
All divs should be marked black in both cases
Comment 1 Boris Zbarsky [:bz] (TPAC) 2010-12-20 18:22:43 PST
Things with non-visible overflow capture the mouse, no?  That's the expected behavior in Gecko, last I checked....
Comment 2 Andrei 2010-12-23 02:39:57 PST
(In reply to comment #1)
> Things with non-visible overflow capture the mouse, no?  That's the expected
> behavior in Gecko, last I checked....

All elements of the page are visible. Mouse capturing can't be expected in this case. It breaks multiselect functionality.
Comment 3 John C 2011-04-26 11:50:58 PDT
Experienced the same issue. Having to rework the codebase to correct this bug.

Note You need to log in before you can comment on or make changes to this bug.