VueDragToScroll now supports a v-directive used as followed:
<script setup>
import { dragToScroll: vDragToScroll } from "vue-dragtoscroll";
</scrpt>
<template>
<div v-drag-to-scroll class="container directive">
<div v-for="i in 20" :key="i" class="container-item" @click="!isDragging && showAlert(i)">
{{ i }}
</div>
</div>
</template>
This will immediately enable drag to scroll with the default settings.
Full Changelog: v1.0.0...v1.1