[PR #6391] [MERGED] fix: scroll long lists while dragging items #7162

Closed
opened 2026-10-23 04:17:06 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 55f66cc chore: begin drag scrolling follow-up for issue 6390
  • 9823a14 fix: let a second finger scroll during list dragging
  • 630299c fix: 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 check passed, including localization, formatting, lint, TypeScript and production builds.

  • node scripts/run-regressions.mjs --filter scripts/regressions/chat-resource-drop.regression.ts passed.

  • 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 check passes locally

  • Container (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.md

Manual 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.

  • Manually verify holding a chat, character or persona with one finger while scrolling with another on Android and iPhone, then dropping into a folder.
  • Manually verify desktop wheel scrolling while dragging on other supported desktop browsers.

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.

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

UI 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/6391 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/19/2026 **Status:** ✅ Merged **Merged:** 9/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/drag-list-scroll` --- ### 📝 Commits (3) - [`55f66cc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/55f66ccccbb1979ca6e60f5b1791acc4e28f6bb1) chore: begin drag scrolling follow-up for issue 6390 - [`9823a14`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9823a14e15b49dc4e939062e8b58d994bac1771b) fix: let a second finger scroll during list dragging - [`630299c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/630299ce0fe7c8c7f280dede992b35ed0c9f210b) fix: resume edge scrolling after the second finger leaves ### 📊 Changes **7 files changed** (+309 additions, -83 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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 check` passed, including localization, formatting, lint, TypeScript and production builds. - `node scripts/run-regressions.mjs --filter scripts/regressions/chat-resource-drop.regression.ts` passed. - 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 check` passes locally - [ ] Container (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.md` ### Manual 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. - [ ] Manually verify holding a chat, character or persona with one finger while scrolling with another on Android and iPhone, then dropping into a folder. - [ ] Manually verify desktop wheel scrolling while dragging on other supported desktop browsers. ## 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. - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) [Before/after captures and proof scope](https://gist.github.com/SpicyMarinara/c7564cc5ed04dcf3a5d4aa6311a9352e#drag-scrolling-follow-up-6390-pr-6391). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:17:06 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7162
No description provided.