views:

124

answers:

1

I have several draggables on my page. When I start dragging one, it moves just fine, but the other elements on the page are getting highlighted/selected from my cursor.

I noticed that the draggle demos on the jquery ui website seemed to work just fine. Does anyone have any ideas why text is being selected on my site during dragging?

This is the code I'm using (seems pretty standard to me):

$('.dragger').draggable( { 'helper': 'clone', 'revert': true });

A: 

Check this demo sources, for example:

$("#sortable").disableSelection();

edit
A post from jquery forum explaining the situation around disableSelection. Looks like it's 'undocumented' for a long time already.

Nikita Rybak
I found that the disableSelection() doesn't do anything if I have:'helper': 'clone'If I remove the 'helper' argument, then no selection occurs. Anyone know how to disable selection when there is a clone helper?
@user463604 'helper: clone' means that element is cloned, so no event handles associated with it. But you can execute _disableSelection_ again once element is dropped (if I understand your problem correctly).
Nikita Rybak