Hareeshchandera / jsplumb

Automatically exported from code.google.com/p/jsplumb
0 stars 0 forks source link

canvas toggle bug in demo #171

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
There is a bug with 'toggle' in the demo with canvas:

http://jsplumb.org/jquery/draggableConnectorsDemo.html

1) select canvas, or SVG
2) connect green dot, window1 to window3
3) 'toggle connections' in window1

- expected: toggle connection window1 to window3
- result: no toggle.

Unknown if this is a bug in the demo or in the lib. But is looks like a bug in 
the render-change function :)
So not really an impressive bug, but it suddenly 'toggle connections' was not 
working when testing between SVG and Canvas. 

tested in: Firefox 9, canvas, jquery

Original issue reported on code.google.com by j.verdur...@2bmore.nl on 10 Jan 2012 at 8:26

GoogleCodeExporter commented 8 years ago
i can see what's happening here - the toggle method is getting called twice, so 
it's getting hidden and then shown again.  so i'm going to advance a theory: 
click on canvas then back on svg and then create a connection and click 
toggle....it should be hidden.

..and it is.  ok so it's the mouse listeners in the demo. they're getting 
registered each time the render mode is changed.  i'll fix this.

Original comment by simon.po...@gmail.com on 10 Jan 2012 at 9:32

GoogleCodeExporter commented 8 years ago
this is fixed in 1.3.5.

Original comment by simon.po...@gmail.com on 29 Jan 2012 at 8:25

GoogleCodeExporter commented 8 years ago
1.3.5 was released today.

Original comment by simon.po...@gmail.com on 1 Feb 2012 at 1:59