Domanda

I develop my own simple js lib to drag <div>

When I drag it then I often select text under <div>.

http://jsfiddle.net/Sw7Ty/

Obviously it is something (text selection) I do not wish to happen.

It happens in Google Chrome.

(In FireFox I have another issue that I will ask in other thread)

WORKING CODE

working code: http://jsfiddle.net/6Kwd4/

È stato utile?

Soluzione

Hi make some quick tests on your jsfiddle :

so i think its about e.preventDefault(); in the mouseXXX events.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top