Moveable: page scrollling

Created on 16 Dec 2020  路  3Comments  路  Source: daybrush/moveable

Environments

  • Framework name: React
  • Framework version: 16.12.0
  • Moveable Component version: 0.22.5
  • Testable Address(optional):

Description


i have a div in which i am using moveable elements it works fine until i do not apply scroll on it's parent div. when i apply scroll and scroll the div frame of react moveable stays fixed but image on which frame was applied moves along the page. i have attached a picture and for better understanding please watch video from the link below.
https://drive.google.com/file/d/1C59bgbPAZk8298JKl2BtbET01GNPgJcg/view
it would be really great if you can help me here it's a week that i am stuck with this problem on my project.
frame dislocation

React question

All 3 comments

If possible you should render the Moveable instance inside of the scrolling div, then it will move correctly when you scroll

If possible you should render the Moveable instance inside of the scrolling div, then it will move correctly when you scroll

Thanks a lot for your response, I tried as you said below is the demonstration of code and issue that still persist, please let me know where I am making mistake.

video of issue after following the above instructions:-
https://drive.google.com/file/d/1RV4OxDnZjnwQY8ytiEMWAgpGbYX6KGgt/view

Code snip from browser inspector:-
inspector-code-snip

Code snip moveable component:-
Moveable-code-snippet

I have also tried giving null or document.body to the container property of moveable component.

Thanks again, it would really a great help.

Thanks!!!!

@tesmem101

Set editorContainer's css to position: relative;

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adityakrshnn picture adityakrshnn  路  6Comments

Nazakatalikharal picture Nazakatalikharal  路  6Comments

plotpoi picture plotpoi  路  4Comments

ajinkya-dev picture ajinkya-dev  路  3Comments

masoudelahi picture masoudelahi  路  5Comments