[GH-ISSUE #6576] [Issue]: Modals and sheets unexpectedly dismiss when mouse drag or release ends on backdrop #3689

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

Originally created by @menemorofaan on GitHub (Sep 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6576

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Mouse drag interactions initiated inside modal dialogs (such as selecting text, dragging across inputs, or mouse slips) trigger accidental dialog dismissal if the mouse button is released outside over the dark backdrop.

Expected behavior

Releasing a mouse drag outside the modal container should not close the dialog. A backdrop dismissal should only trigger on an intentional click that begins and ends directly on the backdrop itself.

Actual behavior

Pressing the mouse button (mousedown) inside the dialog container and releasing it (mouseup) on the backdrop triggers a backdrop dismiss event, abruptly closing the dialog and causing loss of context or uncommitted input.

Steps to reproduce

  1. Open any affected modal or sheet (e.g. GameCharacterSheet, SummariesEditorModal, ChatImageLightbox, etc.).
  2. Press and hold the left mouse button inside the dialog content (e.g. selecting text or clicking near the edge).
  3. Drag the cursor outside the dialog boundary onto the backdrop area.
  4. Release the mouse button.
  5. The dialog immediately closes.

Environment

  • Marinara Engine version: staging (latest)
  • Install type: source
  • OS + version: Windows 11
  • Browser or app shell: Chrome / Chromium (Web UI)

Logs, screenshots, or video

N/A (UI interaction behavior)

Additional context

Multiple dialogs (GameCharacterSheet, ChatImageLightbox, ConversationMessageLightbox, SummariesEditorModal, EncounterModal, MariPromptPreviewModal, and PeekPromptModal) are affected. The existing useBackdropDismiss hook provides the exact guard needed to resolve this across these components.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @menemorofaan on GitHub (Sep 23, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6576 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Mouse drag interactions initiated inside modal dialogs (such as selecting text, dragging across inputs, or mouse slips) trigger accidental dialog dismissal if the mouse button is released outside over the dark backdrop. ## Expected behavior Releasing a mouse drag outside the modal container should not close the dialog. A backdrop dismissal should only trigger on an intentional click that begins and ends directly on the backdrop itself. ## Actual behavior Pressing the mouse button (`mousedown`) inside the dialog container and releasing it (`mouseup`) on the backdrop triggers a backdrop dismiss event, abruptly closing the dialog and causing loss of context or uncommitted input. ## Steps to reproduce 1. Open any affected modal or sheet (e.g. `GameCharacterSheet`, `SummariesEditorModal`, `ChatImageLightbox`, etc.). 2. Press and hold the left mouse button inside the dialog content (e.g. selecting text or clicking near the edge). 3. Drag the cursor outside the dialog boundary onto the backdrop area. 4. Release the mouse button. 5. The dialog immediately closes. ## Environment - Marinara Engine version: staging (latest) - Install type: source - OS + version: Windows 11 - Browser or app shell: Chrome / Chromium (Web UI) ## Logs, screenshots, or video N/A (UI interaction behavior) ## Additional context Multiple dialogs (`GameCharacterSheet`, `ChatImageLightbox`, `ConversationMessageLightbox`, `SummariesEditorModal`, `EncounterModal`, `MariPromptPreviewModal`, and `PeekPromptModal`) are affected. The existing `useBackdropDismiss` hook provides the exact guard needed to resolve this across these components. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:06: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#3689
No description provided.