esl
esl copied to clipboard
[🚀esl-drag-to-scroll]: implement component to make user able to scroll trough drag events
-
Custom attribute (mixin)
esl-drag-to-scroll -
API :
- axis (MVP) - axises to handle manipulation (default: 'both')
- cls - class to add in dragging state
-
Future API options
- ignore
- probably alternative touch behaviour
-
Example:
<div class="esl-scrollable-content" esl-drag-to-scroll="{axis: 'both'}">
...
</div>