chrome sets cursor to text while dragging, why?

user307635 picture user307635 · Apr 30, 2010 · Viewed 22.6k times · Source

My application has many drag and drop features. While dragging I want the cursor to change to some grab cursor. Internet Explorer and Firefox work fine for this, but Chrome always changes the cursor to the text cursor.

Answer

tim picture tim · Mar 16, 2012

None of these solutions worked for me because it's too much code.

I use a custom jQuery implementation to do the drag, and adding this line in the mousedown handler did the trick for me in Chrome.

e.originalEvent.preventDefault();