Closed Bug 378106 Opened 17 years ago Closed 13 years ago

onmouseout event is not launched if left-click is pressed when mouse is moved outside of an element with overflow set to auto, hidden or scroll.

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 552707
mozilla9

People

(Reporter: ale.dimare, Assigned: masayuki)

Details

(Keywords: testcase)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

Any element with an overflow property of auto, scroll or hidden will not launch the onmouseout event assigned to the element if the mouse's left click is held pressed as the mouse is moved out of the element.

Reproducible: Always
Attached file Simple test case
A simple test case, text in the upper span should change if mouse is over or outside the yellow div.
Just hold left click inside the yellow area and move mouse away with the different overflow properties to see the results.
It needs to be noted that if the left click happens before entering the div, all propoerty types behave correctly entering and exiting. Is this to do with beginning a drag event from inside divs in the inconsistent cases?

I also noticed the false didn't show immediately upon releasing the left click, only when you move the mouse after releasing.
Assignee: nobody → events
Component: General → Event Handling
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → 1.8 Branch
Keywords: testcase
Assignee: events → nobody
QA Contact: ian → events
Blocks: 557512
Trying to simplify:
1 - The mouse events are launched in a wrong order:
    (over, down, up, out) instead of (over, down, out);
2 - The mouseout event occurs only when the mouse button is released and is preceded by a undesired mouseup event, that should not exist;
3 - The mouseup event must not be launched, since it occurs outside the element;
4 - Sometimes (condition not detected) after the button is released, mouse events are not lauched until you move the mouse;
5 - After a mousedown event with the button still pressed, moving the mouse over other elements, will not launch mouse events;
6 - Using the right mouse button, the behaviour seems correct.

Since this bug status is still UNCONFIRMED, I will try to post another test case that shoud clear any doubts.

Thank you!
Attached file Simple test case II
Test case for Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Assignee: nobody → masayuki
Status: UNCONFIRMED → ASSIGNED
Depends on: 552707
Ever confirmed: true
Version: 1.8 Branch → Trunk
No longer blocks: 557512
Updating data posted in "comment 3" for Firefox 3.6.3, now using Firefox 5.0.

Except for item number 4, all facts reported in the other items still occurs.
I must report also that for item 1, now the events sequence is (over, down, up, click, out), where "click" was not present in previous version 3.6.6, used fot tests in "comment 3".
You can check it using the same "test case II".

Thank you!
fixed by bug 552707.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
OS: Windows XP → All
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
Temporarily, backed out for risk management of mozilla8, see bug 675865.

For simpler management, I mark this bug as dup of bug 552707.
No longer depends on: 552707
Resolution: FIXED → DUPLICATE
Target Milestone: mozilla8 → mozilla9
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: