Hareeshchandera / jsplumb

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

repaint on mousemove won't work properly in opera #229

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
hi there i was in need recently to use lines connecting elements and jsPlums 
was best way to to this for me, but i came across some issues in opera.

so here it is: i have div with two images and line connecting them, one of 
those images is draggable and on mouse move i'm calling repaint for connecting 
line.

it works fine, but in opera... there is problem. connecting line after starting 
drag is ~130px longer and a little off.

i dont really have idea how to shorten scripts so here is my page: 
http://ddbeta.czokalapik.com/?l=371,test
adding lines is in processDefense function, repainting in rotateImage function 
and .connect itself is in createConnection function
all in http://ddbeta.czokalapik.com/defPlanner.js
drag one of elements on map with red border to see what i mean

thanks in advance for help.

Original issue reported on code.google.com by bartosz....@gmail.com on 28 Mar 2012 at 5:33

GoogleCodeExporter commented 8 years ago
what version of opera?

Original comment by simon.po...@gmail.com on 31 Mar 2012 at 6:29

GoogleCodeExporter commented 8 years ago
version 11, but don't mind that, i just wrote my own connecting line function 
with label using jquery svg.

thanks

Original comment by bartosz....@gmail.com on 31 Mar 2012 at 6:31

GoogleCodeExporter commented 8 years ago
closing.

Original comment by simon.po...@gmail.com on 31 Mar 2012 at 6:32