Closed Bug 271479 Opened 21 years ago Closed 20 years ago

{inc}Mouse down interferes with :hover

Categories

(Core :: Layout, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: paul, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(2 files, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a5) Gecko/20041122 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a5) Gecko/20041122 Not sure whether this is an events or a layout bug (or maybe style?). Will follow up with a simplified testcase in a second. Reproducible: Always Steps to Reproduce: (skip 1 and 2 if using the test case) 1. Go to http://paulmcgarry.com/ 2. Click on the link for the "purple" page style. 3. Mouse over the "Page style" and click on another style. Actual Results: The DIV shrinks back, the clicked on link seems to scroll up and be selected but doesn't fire the javascript onclick event. Expected Results: The DIV shouldn't shrink. No scrolling should occur. onclick event should fire. When the mouse button is pushed down Mozilla seems to forget that the mouse pointer is over the div with class="style" and reverts it to it's non :hover state. Shrinking the div and moving the link out from under the mousepointer means the click doesn't trigger when the mouse button up occurs.
Attached file Simplified testcase (obsolete) —
Blocks: 261196
Keywords: testcase
OS: Windows 2000 → All
Is every single bit of that CSS really needed? Chances are, this is an issue with scrollframes (so removing the overflow setting will fix it, but other settings can be removed without the bug disappearing).
Summary: Mouse down interferes with :hover → {inc}Mouse down interferes with :hover
Attached file Even simpler testcase
Trimmed superfluous CSS/html.
Attachment #166901 - Attachment is obsolete: true
Depends on: 240276
(In reply to comment #2) > Chances are, this is an issue with scrollframes (so removing the overflow > setting will fix it, but other settings can be removed without the bug > disappearing). The absolute positioning seems to be relevant too. The updated testcase without absolute positioning CSS doesn't reveal the problem.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050428 Firefox/1.0+ WFM.
Caleb, did you try the right test case, the "Even simpler testcase" one? It is still broken for me with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050428
Attachment #167984 - Attachment description: Same testcase without absolute positioning → Same testcase without absolute positioning, doesn't trigger problem
Sounds like it really does work for Caleb. Why not for me? On 4/29/05, Caleb <caleb_ownz@yahoo.com> wrote: > Hmm.. yeah, maybe I didn't get what you mean. > > I've tested the "Even simpler testcase": > - Mouse over the "Hover" text, the DIV expands > - Click the "Click" link, I get an alert Hmm, that sounds like what should happen. It doesn't for me though What happens for me is: - Mouse over the "Hover" text, the div expands. - Click the "click" link, immediately (on mouse down, before click is finished) the div 'shrinks' again but now the "Click" text is visible (and red in colour) in the div as if the div contents have scrolled up. When the click completes the alert is not triggered. If it works for you and not for me using the same build then perhaps it's some sort of race condition and this computer is a bit slow (I think it's a Pentium III 866)?
wfm for me now with a build with the fix for bug 240276.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Paul and Caleb, make sure to list the build HOUR when commenting about builds from the day when a bug was fixed. Firefox nightlies are built in the evening, while Seamonkey ones are built in the morning, so builds with the same _date_ but a different _hour_ can have quite different behavior.
(In reply to comment #9) Yeah, sorry about that bz.. I only came here after bug 240276 was fixed :) Would be nice if tinderbox builds had the hour somewhere ...
When you download the build, download from one of the "dated" FTP dirs. Or at least look at the FTP timestamp; that will give you an approximation of the hour.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: