Closed Bug 267834 Opened 20 years ago Closed 10 years ago

dragging without holding mouse button possible on offical PNG demo

Categories

(Documentation Graveyard :: Web Developer, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ivan.icin, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041103 Firefox/1.0RC2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041103 Firefox/1.0RC2

If you drag the bird or the sun out of screen area, drag&drop turns into moving
that object no matter whether mouse is clicked or not. The only way to escape
from this is to click on other object.

Reproducible: Always
Steps to Reproduce:
1. Go to http://www.mozilla.org/start/1.0/demos/eagle-sun.html
2. Drag the sun to the bottom edge of page (scrollbar appears)
3. Scroll page down
4. Drag sun more down
5. Drag sun back
6. Move mouse
Actual Results:  
The sun continue to move on mouse move, though you have released mouse button

Expected Results:  
The sun should not move if not drag&dropped
It's because the script of that page is buggy. The mouseup event handler is on
the draggable object itself.
That means when you're dragging the object and you happen to release the mouse
button while the object is not under the mouse pointer, the mouseup event
handler function is never called.
Changing what.onmouseup = endDrag; to document.onmouseup = endDrag; would solve
the bug, I think.
Martijn Wargers, as I read your comments, I understand that this is not Firefox
error. Still, this is bug, and it probably has some category to fit in, but I
can't figure out which one I should switch it to. Can you help me?
Component: General → Web Developer
Product: Firefox → Documentation
I should have updated the title as Martijn changed category, but I forgot.
Summary: offical PNG demo incorrectly handled → dragging without holding mouse button possible on offical PNG demo
*** Bug automatically confirmed by popular vote ***
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: firefox → web.developer
QA Contact: general
This bug has been buried in the graveyard and has not been updated in over 5 years. It is probably safe to assume that it will never be fixed, so resolving as WONTFIX.

[Mass-change filter: graveyard-wontfix-2014-09-24]
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.