vueuse / gesture

🕹 Vue Composables making your app interactive
https://gesture.vueuse.org
MIT License
353 stars 18 forks source link

TypeError: mixerFactory is not a function #27

Closed prpanto closed 6 months ago

prpanto commented 6 months ago

I use the code from the demo and I have error mixerFactory is not a function

KamilStehlicek commented 6 months ago

That is a wrong demo code. You want to use this

const { motionProperties } = useMotionProperties(domElementRef, {
  cursor: 'grab',
  x: 0,
  y: 0
})

const { set } = useSpring(motionProperties, {
  damping: 50,
  stiffness: 220,
})