Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-use-gesture is deprecated #52

Open
froleo opened this issue Sep 22, 2022 · 2 comments
Open

react-use-gesture is deprecated #52

froleo opened this issue Sep 22, 2022 · 2 comments

Comments

@froleo
Copy link

froleo commented Sep 22, 2022

What happened
When installing react-spring-lightbox npm gives following warning:
npm WARN deprecated react-use-gesture@9.1.3: This package is no longer maintained. Please use @use-gesture/react instead

Suggested fix
Migrate react-use-gesture to @use-gesture/react

Tested environment
Node: v16.17.0
NPM: 8.15.0

Step to reproduce
npm install react-spring-lightbox on a fresh CRA app

@tim-soft
Copy link
Owner

@froleo thanks for pointing this out, I would gladly accept a pull request that upgrades the gesture library

@tim-soft tim-soft reopened this Sep 22, 2022
@froleo
Copy link
Author

froleo commented Oct 7, 2022

I gave it a go updating useGesture here

  • Dragging gesture
  • Keyboard navigation
  • Pinch to zoom (zoom acceleration is very slow)
  • Mouse scroll (not working)
  • Trackpad horizontal swipe (To sensitive / buggy)

Trackpad scroll seems to have similar issues on the current version as well, it's very sensitive and it often skips multiple images in one swipe.

Do you have any clues to pinpoint me in the right direction?

Following the breaking change list from here:
https://github.com/pmndrs/use-gesture/blob/main/packages/react/CHANGELOG.md#1000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants