Displaying 1 to 4 from 4 results

dragscroll - micro library for drag-n-drop scrolling style

  •    Javascript

Dragscroll is a micro JavaScript library (910 bytes minified) which enables scrolling via holding the mouse button ("drag and drop" or "click and hold" style, online demo). It has no dependencies and is written in vanilla JavaScript (which means it works anywhere). That's it! Now you can scroll it by dragging. You can also add the dragscroll class to the <body> element and drag the whole page.

mouse-change - Mouse state change listener

  •    Javascript

Listens for any mouse state changes. Listens for any mouse state changes on the given element.

hold-up - :raised_hand: Wait until a given condition is true

  •    Javascript

Returns a Promise instance that resolves whenever condition returns true. Rejects if condition is false or timeoutInterval times out. Function that the library will attempt to run until it gets a true value back.