Dragging an SVG Element becomes unresponsive

RESOLVED INVALID

Status

()

RESOLVED INVALID
6 years ago
6 years ago

People

(Reporter: happypatrick1971, Unassigned)

Tracking

13 Branch
x86
Windows Vista
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
Created attachment 638506 [details]
firefox.php

User Agent: Mozilla/5.0 (Windows NT 6.0; rv:13.0) Gecko/20100101 Firefox/13.0.1
Build ID: 20120614114901

Steps to reproduce:

Dragging an SVG circle seems to response well on drag at first, but after a few seconds and some random mouse clicks/moves it seems to ignore and mix up mouse events. 


Actual results:

element gets dragged while mousebutton is not pressed, and visa versa


Expected results:

the drag should finish on mouse up. This problem does not  happen with other browsers.
(Reporter)

Comment 1

6 years ago
Comment on attachment 638506 [details]
firefox.php

Please rename the .php extention to .html in the submitted attachement.
Comment on attachment 638506 [details]
firefox.php

Extensions doesn't matter
Attachment #638506 - Attachment filename: firefox.php → Testcase
Attachment #638506 - Attachment mime type: text/plain → text/html
Component: Untriaged → SVG
Product: Firefox → Core
QA Contact: untriaged → general
Are you calling preventDefault on the event argument in all your event handlers?
(Reporter)

Comment 4

6 years ago
(In reply to Robert Longson from comment #3)
> Are you calling preventDefault on the event argument in all your event
> handlers?

No, I've included the sourcecode in the attachement. I'm just using 3 mouse events (mousedown,mousemove and mouseup).
(Reporter)

Comment 5

6 years ago
(In reply to Matthias Versen (Matti) from comment #2)
> Comment on attachment 638506 [details]
> firefox.php
> 
> Extensions doesn't matter

I know, but changing it to html you could run it straight in the browser without the need for running a webserver. :-)
(Reporter)

Comment 6

6 years ago
Can anyone confirm the bug?
You need to call evt.preventDefault() in the event handlers to prevent any default event handling.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.