drag-scroll-vue3

This package provide directive for drag scroll
19,934 1
Install
npm install drag-scroll-vue3
Latest Version:1.1.2
Vue:3
License:MIT
Last Updated:May 27, 2024
Links: GitHub  ·  npm
Maintainer: vashuber

drag-scroll-vue3

This package provide directive for drag scroll

Installation

npm install drag-scroll-vue3

Basic usage

import { createApp } from "vue";
import App from "./App.vue";
import dragScroll from "drag-scroll-vue3";

const app = createApp(App);

app.directive("drag-scroll", dragScroll);
app.mount("#app");
<your-component-with-list v-drag-scroll>
  <block />
  <block />
  <block />
  <block />
  <block />
</your-component-with-list>

In this case, scroll will work for all directions at a speed equal to 1

Modify speed and direction

<your-component-with-list v-drag-scroll.options="{ speed: 2, direction: 'y' }">
  <block />
  <block />
  <block />
  <block />
  <block />
</your-component-with-list>

Available direction option

  • all
  • x
  • y

Related Packages

v-slim-mask

A input mask directtive compatible with Vue 3 (~1.5kb)

7,789 6
vue-create-ripple

Flexible Ripple Directive for Vue 3

1,111 14
vue3-highlight-text

a vue3 directive of highlight text

84,789
@clalarco/vue3-plotly

Vue 3 component for plotly.js, with Typescript support

28,421
vue-proportion-directive

vue 固定元素比例指令

6,003 10

Version History

Version Released License
1.1.2 MIT
1.1.1 MIT
1.1.0 MIT
1.0.7
1.0.6