4xx / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
0 stars 0 forks source link

releasing mouse button outside window causes problem #1192

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
using 2.6.

assume using line tool. start dragging, move cursor to outside window, then 
release mouse button. SVGEdit cannot detect mouseup. then move cursor inside 
the window. lbutton is released, but SVGEdit thinks dragging continues. then 
click. dragging line is settled unexpectedly.

mousedown starts new dragging, then mouseup removes new temp line. however, 
prior temp lime is left as it is.

same problem occurs using rect or circle tool.

I suggest to add "if (started) break;"
checking just after each label in first switch of mousedown handler that sets 
started = true.

Original issue reported on code.google.com by psh....@gmail.com on 8 Mar 2014 at 8:19

GoogleCodeExporter commented 9 years ago
I experienced the same issue.

Adding "if (started) return;" at the beginning of the mouseDown-function in 
svgcanvas.js - as you suggested - seems to solve it!

Tanks!

Original comment by Mere...@googlemail.com on 11 Dec 2014 at 1:08