pmndrs / use-gesture

👇Bread n butter utility for component-tied mouse/touch gestures in React and Vanilla Javascript.

Home Page:https://use-gesture.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The examples were broken

meotimdihia opened this issue · comments

Describe the bug
The example doesn't work

[@use-gesture]: You've created a custom handler that that uses the `drag` gesture but isn't properly configured.

Please add `dragAction` when creating your handler. 
    in App 

https://codesandbox.io/s/github/pmndrs/use-gesture/tree/main/demo/src/sandboxes/viewpager
https://codesandbox.io/s/github/pmndrs/use-gesture/tree/main/demo/src/sandboxes/card-zoom

Information:

  • Use Gesture version:
  • Device: iPhone/Mac
  • OS: iOS/MacOS
  • Browser Chrome/Safari

Checklist:

  • I've read the documentation.
  • If this is an issue with drag, I've tried setting touch-action: none to the draggable element.

This is related to #560 and on CSB side. You can try to download the sandbox locally and check that it works. I know it's a bummer but there's not much I can do beside downgrading the package.

Sandboxes should be working now, CSB has fixed the bug