akserg / ng2-dnd

Angular 2 Drag-and-Drop without dependencies
MIT License
839 stars 252 forks source link

Change cursor to grab and grabing #239

Open 13sergy opened 6 years ago

13sergy commented 6 years ago

I would like change default cursors.

marcusdacoregio commented 6 years ago

I like this too, I have achieve this by doing the following:

    div[dnd-draggable] {
        cursor: -webkit-grab !important;

        &.dnd-drag-start {
            cursor: -webkit-grabbing !important;
        }
    }

Where div can be any of your elements

kultigin commented 5 years ago

Why I do get a cursor:pointer on dnd-sortable if I already have a dnd-sortable-handle elsewhere? for example I have list-items which are sortable but their handle is a small icon, the whole list gets a pointer which is confusing to the user as if list-item is clickable. And I want the handle to, of course, get grab and grabbing cursor rather than default move. The above code may wrk but the pointer confuses things.