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

The draggable element hide or change its position when I resize the chrome window #1039

Open
ziaKhan1995 opened this issue May 15, 2024 · 1 comment

Comments

@ziaKhan1995
Copy link

Thanks for this library.

Expected behavior

The dragged element must maintain its position where it was dragged.

Actual behavior

Does not maintain its position both on window resize and also on other screens.

is there any consistent way to maintain its position both by resizing of window and also on other screens?

Thanks in advance.

System configuration

interact.js version: 1.10.27
Browser name and version: chrome 124.0.6367.202 (Official Build) (64-bit)
Operating System: window

@BloodSeaker
Copy link

If you read the docs, it says you are responsible for the positioning of the element. THe library only gives you events on the position of the dragged element and on droppable areas.
So, if you want it to behave correctly on repositioning when changing window size, you need to do the calculations yourself ;)

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