Closed Bug 309275 Opened 19 years ago Closed 19 years ago

onmouseout gets triggered when the mousewheel is moved even if onmouseout would normally not get triggered

Categories

(Core :: DOM: Events, defect)

x86
Windows XP
defect
Not set
trivial

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: Devega, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

I made a website (currently not online and can't upload it either) which had an
onmouseover background-color change. The onmouseout trigger was set to reset the
background back to its original color. When moving my mouse over it, the
background changes color normally. When I use my mousewheel now (and it doesn't
matter whether the page has a scrollbar or not) the onmouseout event triggers
and resets the background color.

I did this with table row (tr) backgrounds.

Reproducible: Always

Steps to Reproduce:
1. Move your mouse over the tr with onmouseover bgcolor change on it, where the
tr also has an onmouseout to change the bgcolor to something else.
2. Go mad with your mouse-wheel.

Actual Results:  
The background got changed to the color in the onmouseout, while the mouse was
in fact still over the table row so there was no reason for the onmouseout to
trigger.

Expected Results:  
ignored the onmouseout unless it actually moved off the table row with the
onmouse out set on it.
Please attach a testcase or give an url that shows the bug.
That being said, I don't think this is a bug. Onmouseover and onmouseout can be
triggered without moving the mouse, mousemove, on the other hand, not.
Assignee: nobody → events
Component: General → DOM: Events
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
Attached file Testcase
I've also stumbled across this bug -> attached testcase.

Using: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050913
Firefox/1.0.6 (Ubuntu package 1.0.6)

Steps to reproduce:
1. Put the cursor above the blue box -> turns red.
2. Scroll up or down -> turns blue while the cursor is still on top of the box

Should happen:
Since the cursor never leaves the box, the onmouseout event shouldn't be fired.
Please test with a nightly trunk build to see it this still happens:
http://ftp.scarlet.be/pub/mozilla.org/firefox/nightly/latest-trunk/
Not able to reproduce with version downloaded from 
http://ftp.scarlet.be/pub/mozilla.org/firefox/nightly/latest-trunk/

"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20050920 Firefox/1.6a1"

WFM
Worksforme on trunk on WinXP.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: