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

Resize or scale does not follow with pointer after zooming. #1120

Open
kakukogou opened this issue Jun 17, 2024 · 0 comments
Open

Resize or scale does not follow with pointer after zooming. #1120

kakukogou opened this issue Jun 17, 2024 · 0 comments

Comments

@kakukogou
Copy link

Hi team,

I am using moveable with InfiniteViewer. After zooming in and out and drap/scale/reszie the moveable elements, the controller does not follow the mouse pointer.

This issue also happens in this demo: https://codesandbox.io/p/sandbox/demo-5sr1h?file=%2Fsrc%2FEditor%2Futils%2FMoveableData.ts

Screen.Recording.2024-06-17.at.12.10.54.PM.mov

However, it does not appear in this demo: https://codesandbox.io/p/sandbox/moveable-whq0d?file=%2Fsrc%2FEditor%2FViewport%2FMoveableMananger.tsx

Screen.Recording.2024-06-17.at.12.13.34.PM.mov

My local implementation likes the first demo that the moveable controller does not follow the mouse pointer.

Wondering is there anything that need to take care while using Moveable and InfiniteViewer altogether?

I'm using

  • "react-moveable": "^0.56.0",
  • "react-infinite-viewer": "^0.28.1",
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

1 participant