moveable icon indicating copy to clipboard operation
moveable copied to clipboard

can i reset moveable's coordinate?

Open khuntoriia opened this issue 3 years ago • 5 comments

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

khuntoriia avatar Apr 28 '22 09:04 khuntoriia

@khuntoriia

What will be the markup html structure and css?

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

daybrush avatar Apr 30 '22 06:04 daybrush

@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.

daybrush avatar May 01 '22 18:05 daybrush

@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.

khuntoriia avatar May 02 '22 04:05 khuntoriia

@khuntoriia

What is the target set in moveable?

iframe element?

Is it an element inside an iframe?

daybrush avatar May 02 '22 13:05 daybrush

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

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

daybrush avatar May 02 '22 13:05 daybrush