Closed Bug 578058 Opened 14 years ago Closed 13 years ago

An empty DIV block becomes draggable when dragged the second time, and the mouse-up event is lost.

Categories

(Firefox :: General, defect)

3.6 Branch
x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: pkwan, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6

An empty DIV block will become draggable like an image, if you attempt to drag it twice.

Also, the mouse-up event will only be fired during the first drag. In subsequent drags, the mouse-up event will not be fired, but the mouse-down event will still be fired.

The above behavior does not occur if the DIV is not empty. It also does not occur in FireFox 3.5 or below.



Reproducible: Always

Steps to Reproduce:
1. Creates a web page with just one empty <DIV> block, with a mouse-up event handler, like:

<html><body>
<div style="width:600px; height:600px; background-color:#c0c0c0" onmouseup="alert('mouse up');"></div>
</body></html>

2. Drag on the empty DIV block. The mouse-up event occurs.

3. Drag again. The DIV block will drag with a "Stop" icon as if it is an image. When the mouse is released, the mouse-up event will not occur.

Actual Results:  
The mouse-up event occurs in the first drag. In subsequent drags, the DIV block will drag with a "Stop" icon as if it is an image. When the mouse is released, the mouse-up event will not occur.

Expected Results:  
The DIV should not drag like an image. The mouse-up event should occur.
Version: unspecified → 3.6 Branch
Reporter -> Are you still experiencing this issue with the latest version of Firefox 5? Does the issue occur with the latest nightly? http://nightly.mozilla.org/
Reporter -> Any update?
Closing bug as Incomplete - if you are still experiencing this issue or have more information to provide feel free to post back here and we can re-open the bug. You can also get assistance by visiting the Firefox help site -> http://support.mozilla.com/en-US/kb/Ask+a+question
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.