user3309300
user3309300

Reputation: 17

How to change cursor dynamically while dragging in IE?

With the following JS code, I am trying to replace the cursor while dragging. It works well for Chrome and FF ,not IE. Any workaround?

$("body").mousedown(function() {
  $("body").mousemove(function(){
    $("body").addClass("dragging");
  });
});
$("body").mouseup(function() {
    $("body").unbind('mousemove');
    $("body").removeClass("dragging");
});


.dragging {
    cursor: no-drop;
 }

Upvotes: 0

Views: 261

Answers (1)

cs_stackX
cs_stackX

Reputation: 1527

I am not aware of a workaround for this, as this article from CSS-Tricks makes clear:

"The following not supported in IE or Opera: not-allowed, no-drop, vertical-text, all-scroll, col-resize, row-resize"

Sorry I can't provide a workaround, but hopefully the article clears up any confusion.

Upvotes: 1

Related Questions