vueuse / gesture

🕹 Vue Composables making your app interactive

Home Page:https://gesture.vueuse.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: mixerFactory is not a function

prpanto opened this issue · comments

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

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,
})