user1873073
user1873073

Reputation: 3660

How to make HTML5 drag and drop work like jQuery UI draggable?

I have two major deal breakers with HTML5 drag and drop. The first is that I only want to see the ghost element. The second is I want to have the normal cursor while the element is being dragged.

enter image description here

<div draggable="true">DRAG TEST</div>

fiddle (webkit only)

Upvotes: 2

Views: 473

Answers (1)

Tony Jose
Tony Jose

Reputation: 1664

You can set cursor style while dragging by,

       $(".class").draggable({
        revert: true,
        revertDuration: 1000,
        cursor: "move"
    });

        cursor: "move",  cursor: "auto", cursor: "none"

Upvotes: 2

Related Questions