Skip to content

v1.1.0

Latest
Compare
Choose a tag to compare
@MelvinIdema MelvinIdema released this 12 Nov 17:52
· 18 commits to main since this release

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