mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6391] [MERGED] fix: scroll long lists while dragging items #7162
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7162
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6391
Author: @SpicyMarinara
Created: 9/19/2026
Status: ✅ Merged
Merged: 9/19/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/drag-list-scroll📝 Commits (3)
55f66ccchore: begin drag scrolling follow-up for issue 63909823a14fix: let a second finger scroll during list dragging630299cfix: resume edge scrolling after the second finger leaves📊 Changes
7 files changed (+309 additions, -83 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)➕
e2e/drag-list-scroll.e2e.ts(+198 -0)📝
packages/client/src/components/chat/ChatResourceMobileDropDock.tsx(+5 -3)📝
packages/client/src/components/layout/ChatSidebar.tsx(+33 -71)📝
packages/client/src/hooks/use-touch-folder-drag.ts(+61 -6)📝
packages/client/src/lib/chat-resource-drag.ts(+8 -1)📝
scripts/regressions/chat-resource-drop.regression.ts(+2 -2)📄 Description
Linked issue
Closes #6390.
Why this change
Organizing long lists on mobile was awkward: dragging followed the first touch in each event, so a second finger could move the held item, and lifting either finger ended the drag. A scrolling finger could also accidentally assign a resource to the active chat.
What changed
Track the finger holding the item by its touch identifier. A second finger scrolls through the existing scroll targets while edge scrolling pauses; only the holding finger can finish the drop. The mobile chat drop dock uses the same identifier.
Chats reuse the shared folder-drag hook and handle, removing their separate touch implementation. Desktop HTML5 drag handling is preserved: native mouse-wheel scrolling and saved folder drops passed in all three requested lists before and after this change.
Validation
pnpm checkpassed, including localization, formatting, lint, TypeScript and production builds.node scripts/run-regressions.mjs --filter scripts/regressions/chat-resource-drop.regression.tspassed.Nine browser cases cover chats, characters and personas in desktop Chromium, mobile Chromium and mobile WebKit. Real API fixtures verify persisted folder membership. Mobile cases cover reversed touch order, second-finger scrolling, stable previews, canceling either finger, and releasing the scrolling finger over the chat assignment dock.
Five existing browser cases passed for single-finger background organization and connection drag previews. One new assertion initially assumed native dragging was enabled on mobile Personas; it now checks restoration of the original value, and both affected cases passed on rerun.
Local CodeRabbit review completed. Its one minor finding (resume edge scrolling when the scrolling finger ends or is canceled) is fixed; all six mobile cases passed again with a regression assertion for resumption. All required GitHub checks passed on
630299ce0fe7c8c7f280dede992b35ed0c9f210b, including the container build/runtime check. Hosted CodeRabbit completed with no actionable comments; there are no unresolved review threads. The optional full browser/native matrix is still running.pnpm checkpasses locallyContainer (Docker / Podman) built and ran without issue
Ran the app, clicked through the changes manually
Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
Above manual verification completed (describe below)
Read and followed
CONTRIBUTING.mdManual verification notes
Browser evidence is automated: desktop uses native mouse dragging and wheel input; mobile uses synthetic TouchEvents in Chromium and WebKit. Desktop was checked in light mode and mobile in dark mode. Physical Android/iPhone gestures were not tested.
Docs and release impact
A concise user-facing changelog entry documents the touch improvement. No settings, localized copy, dependencies, storage formats or release versions change.
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUI evidence (if applicable)
Before/after captures and proof scope.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.