Skip to content

fix: preserve scroll position after drag-sort reorder#32

Merged
rogerdigital merged 1 commit into
mainfrom
fix/drag-sort-scroll-jump
May 15, 2026
Merged

fix: preserve scroll position after drag-sort reorder#32
rogerdigital merged 1 commit into
mainfrom
fix/drag-sort-scroll-jump

Conversation

@rogerdigital

Copy link
Copy Markdown
Owner

Summary

  • Fix list jumping to unexpected scroll position after drag-and-drop reorder
  • Save scrollTop before renderList() and restore it after DOM rebuild

Test plan

  • Open plugin with manual sort mode enabled
  • Scroll down in a long file list
  • Drag a file to reorder — verify list stays at same scroll position after drop
  • Test on both desktop and mobile (touch drag)

renderList() rebuilds DOM which resets scroll. Save and restore
scrollTop around the re-render call.
@rogerdigital
rogerdigital merged commit 84a07b3 into main May 15, 2026
1 check passed
@rogerdigital
rogerdigital deleted the fix/drag-sort-scroll-jump branch May 15, 2026 06:22
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

Successfully merging this pull request may close these issues.

1 participant