Open Bug 409710 Opened 17 years ago Updated 2 years ago

Lost events in Drag&Drop

Categories

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

x86
Windows XP
enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: kes-kes, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11

When I click some node my document.body.onMouseDown handler registred that this node is dragged and moves it when document.body.onMouseMove event occur.
All works OK until I moves out of page and MouseUp button.
Next time I move over the page my node still considered dragged because of document.body.onMouseUp has not occured yet.
May be you need to dispatch events when mouse return back to page and has changed its state.


Reproducible: Always

Steps to Reproduce:
For example: 
1. I click left button on page, 
2. move out of page mouse pointer, 
3. release left button and press right button,
4. Move mouse pointer back to page
5. mouse state has changed its state from: 
 a) left button from pressed to released
 b) right button from released to pressed
 So you may be must dispatch two events: mouseup for left button, mousedown for right button


Expected Results:  
Let's compare two behaviours current and suggested.
What behaviour is better and why behaviour I suggest is better/worse than current behaviour?
Component: General → Event Handling
Product: Firefox → Core
QA Contact: general → events
Component: Event Handling → User events and focus handling
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.