Skip to content

fe: move the window from the band above an open modal, its backdrop blocked the only place to grab - #260

Merged
landsman merged 3 commits into
mainfrom
fe/drag-window-under-modal
Nov 1, 2026
Merged

landsman merged 3 commits into
mainfrom
fe/drag-window-under-modal

Conversation

@landsman

@landsman landsman commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

With a modal open, the mouse handler refused every drag, so the window could not be moved at all: the title bar is replaced by the page, and the page was all behind the backdrop.

A press on the backdrop within the title bar band now moves the window. The drag starts only after the pointer has moved 3px, because a window drag takes the release, and a dialog that closes on a click outside still has to get that click. Presses inside the dialog and below the band behave as before.

make qa passes. The full make e2e passes all of window.feature, including new scenarios for a drag, a click that closes a light-dismiss dialog, and a lost release; two scenarios elsewhere fail intermittently (settings.feature:43, connections.feature:74), the first of them without this change too. Dragging was checked by hand in the app on macOS, before the lost-release check was added.

@landsman landsman left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blocking bug; the two comments below can go in a follow-up. Reviewed by reading the code at 3fca376, nothing was run locally and the drag was not tried by hand.

Checked and fine: the native dragWindow accepts LeftMouseDragged, so the call from mousemove works and a quick click cannot stick the window to the pointer; preventDefault() keeps the click and the dialog's focus; moving the button and full screen checks changes nothing; pages without a modal, non-modal dialogs and stacked dialogs behave as they should.

Comment thread tests/e2e/features/shell/window.feature Resolved
@landsman
landsman merged commit a8e7131 into main Nov 1, 2026
7 checks passed
@landsman
landsman deleted the fe/drag-window-under-modal branch November 1, 2026 16:59
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