Hareeshchandera / jsplumb

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

jQuery.jsPlumb: support for jsPlumb.Defaults.DragOptions.cursor #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi again, Simon!

just want to replace that 'I' thing with crosshair cursor when dragging div 
as far as I can see, current implmentation fo jQuery ignores this option

Original issue reported on code.google.com by astro64m@googlemail.com on 24 Oct 2010 at 11:00

GoogleCodeExporter commented 8 years ago
hello...just checking...are you using chrome?

http://forum.jquery.com/topic/draggable-cursor-option-does-not-work
http://forum.jquery.com/topic/chrome-text-select-cursor-on-drag

the solution for Chrome is to add this code:

[someElement].onselectstart = function () { return false; };

'someElement' could be 'document' if you like, but that will of course disable 
text selection for the entire page.  so i guess pick something appropriate for 
your setup.

i won't change jsPlumb to do this automatically - it would be too intrusive.

of course if you're not using Chrome then let's talk further ;)

Original comment by simon.po...@gmail.com on 25 Oct 2010 at 9:36

GoogleCodeExporter commented 8 years ago
Yes, I am on Chrome, and IE has related issue,
thanks for pointing this out 

I fixed this using this way
        <!-- http://forum.jquery.com/topic/chrome-text-select-cursor-on-drag -->
        <!-- http://forum.jquery.com/topic/ie8-onselectstart-the-jquery-way -->
        <div id="flowchart" onselectstart="return false" ></div>

Original comment by astro64m@googlemail.com on 26 Oct 2010 at 12:01

GoogleCodeExporter commented 8 years ago
cool. closing.

Original comment by simon.po...@gmail.com on 26 Oct 2010 at 2:38