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

can i reset moveable's coordinate? #653

Open
khuntoriia opened this issue Apr 28, 2022 · 5 comments
Open

can i reset moveable's coordinate? #653

khuntoriia opened this issue Apr 28, 2022 · 5 comments
Labels
bug Something isn't working complete Vue

Comments

@khuntoriia
Copy link

Environments

  • Framework name: vue
  • Framework version: 3
  • Moveable Component version: 0.29.4
  • Testable Address(optional):

Description

I have an iframe in page, but the moveable position goes wrong when the target's postion is "fixed". can i reset moveable's coordinate to iframe's point
image

@daybrush daybrush added bug Something isn't working Vue labels Apr 30, 2022
@daybrush
Copy link
Owner

@khuntoriia

What will be the markup html structure and css?

Or is the transform hanging on the container or its parent?

@daybrush daybrush reopened this May 1, 2022
@daybrush
Copy link
Owner

daybrush commented May 1, 2022

@khuntoriia

  • lit-moveable 0.6.8
  • moveable 0.29.8
  • preact-moveable 0.31.8
  • react-compat-moveable 0.17.8
  • react-moveable 0.32.7
  • svelte-moveable 0.21.8
  • vue-moveable 2.0.0-beta.15
  • vue3-moveable 0.4.8
  • ngx-moveable 0.26.8

moveable's new version is released. Try it again.

@khuntoriia
Copy link
Author

@khuntoriia

What will be the markup html structure and css?

Or is the transform hanging on the container or its parent?

hello, the html structure is like this:
image

the iframe which is embedded in a page has some components and the "mask" div cover it, has the same size of the iframe, and moveable is under the "mask". the problem I have is when a component is fixed position, it's position is related to iframe window. but the same position css apply to moveable,it changes to related to browser, so when I want to select the component, the deviation occures.

@daybrush
Copy link
Owner

daybrush commented May 2, 2022

@khuntoriia

What is the target set in moveable?

iframe element?

Is it an element inside an iframe?

@daybrush
Copy link
Owner

daybrush commented May 2, 2022

And a moveable must not belong to a container with a transform.

The moveable must not have a higher depth than the target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working complete Vue
Projects
None yet
Development

No branches or pull requests

2 participants