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

Bug Report: Dragging Element Stops Following Scroll After swapy.update() or Adding a New Element Dynamically #110

Open
TechBeme opened this issue Jan 3, 2025 · 1 comment

Comments

@TechBeme
Copy link

TechBeme commented Jan 3, 2025

Bug Report: Dragging Element Stops Following Scroll After swapy.update() or Adding a New Element Dynamically

Description:
There is an issue where the element being dragged stops following the scroll once the swapy.update() method is called or when a new element is dynamically added to the page.

Steps to Reproduce:

  1. Start with a draggable list of elements where dragging will initially follow the scroll as expected.
  2. Call the swapy.update() method or add a new element dynamically to the list.
  3. After either of these actions, the dragged element stops following the scroll.

Expected Behavior:
The element being dragged should continue to follow the scroll, even after swapy.update() is called or a new element is added dynamically.

Actual Behavior:
After calling swapy.update() or adding a new element dynamically, the element being dragged no longer follows the scroll.

Environment:
This issue occurs across all frameworks: React, Vue, and Svelte.

THIS ISSUE CAN BE OBSERVED IN THE OFFICIAL DEMO SITE ACROSS ALL FRAMEWORKS:

@guy-gestalt
Copy link

Do you also have that issue where - when using auto-scroll - the dragged element often offsets its position?

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