Comments (4)
Add vueuse.gesture.ts
to your plugins
folder:
import { GesturePlugin } from '@vueuse/gesture'
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(GesturePlugin)
})
And then you can e.g. import { useDrag } from '@vueuse/gesture'
in your components.
from gesture.
@happy-turtle - Thank you! I'm still learning the ropes with Nuxt, and the solution is so easy...so thanks for humoring this newb (me) :)
Last question:
Is this server-side friendly, or only client-side? :)
from gesture.
Yeah...wondering the same thing here! :)
from gesture.
@happy-turtle - Thank you! I'm still learning the ropes with Nuxt, and the solution is so easy...so thanks for humoring this newb (me) :)
Last question:
Is this server-side friendly, or only client-side? :)
No problem 😄 I am not sure, but we didn't run into problems using it with SSR.
from gesture.
Related Issues (19)
- Suggestion: Reduce the usage of bold texts in docs HOT 1
- Defining pinch bounds HOT 1
- drag and swipe not work on touch screen HOT 1
- Drag config option does not work
- How to ignore drag when element is scrollable and trigger drag event when scrolled to top/bottom of element HOT 1
- Dragging problem / Minimal drag example HOT 4
- does not rebind when domTarget changes HOT 4
- How to make a Gallery?
- multiGesturemexample js version HOT 1
- Drag continues when pointer is up HOT 1
- Add "types" to "exports" in package.json HOT 2
- "mapper()" missing in docu
- prevent scroll on drag doesn't work HOT 3
- Use with Vue 2 options api? HOT 1
- Limit drag to horizontal? HOT 2
- FR: resize directive HOT 1
- nice, but how to disabled spring effects HOT 1
- Missing documentation for directive usage HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gesture.