asvd / dragscroll

micro library for drag-n-drop scrolling style
http://asvd.github.io/dragscroll/
MIT License
1.1k stars 166 forks source link

Add on drag event? #23

Open krlicmuhamed opened 8 years ago

krlicmuhamed commented 8 years ago

It would be great to have a on('dragstart', function(){..}) event so when user is dragging you can change cursor pointer to grabbing for example.

asvd commented 8 years ago

There are already events which are reused by dragscrol, namely mousedown, mousemove and mouseup. Are they suitable for your purposes?

This can also be done via CSS:

.dragscroll:active {
    cursor : -webkit-grabbing;
    cursor : -moz-grabbing;
    cursor : -o-grabbing;
    cursor : grabbing;
}
m-vo commented 7 years ago

However, .dragscroll:active is not working in Firefox (tested with 50.1.0) while using dragscroll.js.

KarllosSouza commented 5 years ago

This problem persists so far. 😢

Has anyone solved it in any way?

@asvd @krlicmuhamed @m-vo