Closed Bug 312591 Opened 20 years ago Closed 14 years ago

draggesture fires when mousebutton is already released

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: shanec, Assigned: shanec)

References

Details

(Whiteboard: [has draft patch])

Attachments

(1 file, 2 obsolete files)

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1 in our draggable tabbox (not the same as in firefox) I get a draggesture event if I click on a tab (releasing mouse button) and move the mouse quickly. The attached patch will prevent this without impairing drag/drop Reproducible: Always Steps to Reproduce:
Attached patch draggesture.patch (obsolete) — Splinter Review
Attachment #199698 - Flags: review?(sfraser_bugs)
I think we have other bugs about it being too easy to start a drag. Also, I don't think we'll take the patch in its current form. We should avoid platform #ifdefs in XP code.
Assignee: nobody → mikepinkerton
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #199698 - Flags: review?(sfraser_bugs) → review?(mark)
Comment on attachment 199698 [details] [diff] [review] draggesture.patch + if (StillDown()) // only generate drag gesture if button is down ::StillDown(), please. We have other Mac-specific StillDown() hackiness already in this file. Why are we only having trouble figuring out whether the button is down on the Mac?
this actually is a bit better, prevents calling updatecursor and GenerateMouseEnterExit in addition to GenerateDragGesture.
Attachment #199698 - Attachment is obsolete: true
Attachment #213671 - Flags: review+
Attachment #199698 - Flags: review?(mark)
Attachment #213671 - Attachment is obsolete: true
Comment on attachment 213671 [details] [diff] [review] draggesture.patch this *is* actually the correct patch, a brain fart made be do the other bad patch
Attachment #213671 - Attachment is obsolete: false
Comment on attachment 213673 [details] [diff] [review] oops on the last one, draggesture.patch bad bad patch
Attachment #213673 - Attachment is obsolete: true
Blocks: 450553
Shane, is this still a problem in recent Gecko versions?
Assignee: mikepinkerton → shanec
QA Contact: drag-drop
(In reply to comment #8) > Shane, is this still a problem in recent Gecko versions?
Whiteboard: [has draft patch]
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: