Change drag cursors to grab and show no-drag cursor if needed

This commit is contained in:
Mitchell McCaffrey
2021-06-03 12:25:23 +10:00
parent bac3101886
commit 0a03387bf4
3 changed files with 24 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ function Draggable({ id, children, data }) {
});
const style = {
cursor: "pointer",
cursor: isDragging ? "grabbing" : "grab",
touchAction: "none",
opacity: isDragging ? 0.5 : undefined,
};