jellekralt / angular-drag-scroll

Lightweight drag to scroll directive for AngularJS
MIT License
35 stars 27 forks source link

Allow default event handling on excluded classes #14

Open udevnl opened 8 years ago

udevnl commented 8 years ago

Default event handling is prevented for the on-mousedown event of excludedClasses.

For example, dragging with the mouse down and that this causes scrolling of a browser window is default behavior. This is being prevented.

This is bothersome when you also use other frameworks that rely on default behavior.

Adraub commented 7 years ago

Hi, Thanks for this lib! Would it be possible to merge this commit on a new version? It is quite useful when you try to use simple things such as input in html, who won't work if they are child of a draggable scroll. I use it to emulate single touch and I already applied the commit on my project. Having drag-scroll-excluded-classes on the doc would also be as mikkoviitala suggests, i did'nt knew it was possible :)