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

Reset position and scale #1131

Open
eitanavgil opened this issue Aug 29, 2024 · 1 comment
Open

Reset position and scale #1131

eitanavgil opened this issue Aug 29, 2024 · 1 comment

Comments

@eitanavgil
Copy link

Environments

  • Framework name: React (via react-moveable) with Next
  • Framework version: React 18, Next 14.0.4
  • Moveable Component version: "react-moveable": "^0.56.0",
  • Testable Address(optional):

Description

I am using react-moveable to detach a video chat component and i want to have the ability to return the video container back to its original position. I have tried to utilise target!.style.transform but it fails
Is there a best-practice way to reset the container back to its original dimensions and setting? (also tried to set resizable and
draggable to false - that didn't help either)

@lh-sn
Copy link

lh-sn commented Sep 5, 2024

share a demo or reproduction...

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