Skip to content

Reset position and scale  #1131

Open
Open
@eitanavgil

Description

@eitanavgil

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions