javascript disable text selection but allow dragging -


i fighting issue while , searches leads use preventdefault() in onmousedown listener (to prevent text selection), when so, disabling dragging (can't drag elements if have draggable="true" attribute).

what best way allow dragging elements (using attribute draggable="true") , when dragging them , hovering mouse on text (p, h1 ,h2...) prevent text background form being blue (you know - default when clicking , marking text)

thanks. jim.

the thing solved issue simple , in css,

you can see answer here


Comments

Popular posts from this blog

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -