Vanilla javascript (ES6) function enabling drag scrolling on desktop
npm install lc-mouse-draghtml
`
NB: Is essential to have a proper HTML/CSS setup in order to have it working.
For example, on desktop, you must use overflow: hidden; on the target element.
Please check the demo.html code to better understand.
The function also sets an utility class on the BODY element to know if page is being viewed on a mobile device (not needing this function).
This is the CSS code used in the demo to apply the proper CSS only on affected devices
`html
``