Reputation: 17
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
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