Repository navigation
Desktop: keep windows in place across composer focus and pointer loss - #239
Merged
Merged
Conversation
…s composer Co-Authored-By: Claude Opus 5.5 <[email protected]>
Clearance slid windows off bb's home composer while it had focus and slid them back on blur. The slide kept fighting drags and resizes, and pressing a window that had been pushed partly off-screen made it jump. Windows now never move on their own. This replaces the previous commit's fitShift limit. Removes ComposerClearance, clearanceShift, the nudge store, the frame's settle-on-press and nudge transform, and the transform transition that animated the slide. Co-Authored-By: Claude Opus 5.5 <[email protected]>
brsbl
added a commit
that referenced
this pull request
Oct 3, 2026
An interrupted drag (the browser window losing focus, a viewport resize, lost pointer capture, a pointer cancel) used to put the window back where it started on release. It now keeps where the window got to. trackPointer tells onEnd whether Escape ended the gesture; its other callers are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
brsbl
added a commit
that referenced
this pull request
Oct 3, 2026
…over bb Explorer - The home composer was raised above every window while focused, on the assumption that clearance had moved windows off it. With clearance gone, a title bar under the composer couldn't be grabbed. The composer now stays above desktop icons only. - bb Explorer's native page hid only under windows with a higher inline z-index, so note pads (their own layer, above all windows, no inline z) didn't hide it and the page drew over them. Found by a desktop-app sweep with real pointer input. Co-Authored-By: Claude Opus 5.5 <[email protected]>
brsbl
added a commit
that referenced
this pull request
Oct 3, 2026
trackPointer now does what bb's SplitThreadArea/SidebarSplitContainer resizers do: capture the pointer on the pressed element and listen there for move, up, cancel and lost capture. Release commits; a cancelled or lost pointer (or unmount) reverts. Focus loss, viewport resizes, the page hiding, context menus, keys and a second press no longer end a drag, which is what made windows and note pads spring back. Moves apply immediately instead of once per frame. Kept beyond bb's dividers because Desktop needs them: the 4 px click/drag threshold (bb's dnd-kit drags use the same), swallowing the click after a drag, the text-selection guard, and the shield over native web views. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brsbl
added a commit
that referenced
this pull request
Oct 3, 2026
…pback-thr_xitrpg5vep # Conflicts: # plugins/desktop/README.md
brsbl
added a commit
that referenced
this pull request
Oct 3, 2026
Windows (move and resize) jumped back on release in the bb desktop app, which drops pointer capture around release; the bb-style tracker treated that as a cancel and reverted. Once a gesture has moved, pointercancel and lostpointercapture now end it like a release. Unmount, or losing the pointer before any movement, still cancels. Co-Authored-By: Claude Opus 5.5 <[email protected]>
brsbl
added a commit
that referenced
this pull request
Oct 3, 2026
…pback-thr_xitrpg5vep
…op-window-snapback-thr_xitrpg5vep
…itrpg5vep' into bb/desktop-window-snapback-thr_xitrpg5vep
…pback-thr_xitrpg5vep
…pback-thr_xitrpg5vep
…pback-thr_xitrpg5vep
…pback-thr_xitrpg5vep # Conflicts: # plugins/desktop/README.md
…pback-thr_xitrpg5vep
…pback-thr_xitrpg5vep
…pback-thr_xitrpg5vep # Conflicts: # plugins/desktop/programs/internet-explorer.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Desktop windows jumped when the home composer gained focus or pointer capture was lost. Unrelated drags also hid native browsers.
What changed
Validation
e8d75a00d56a820dc69e434af85fe1252b7f6067.Regression evidence and remaining follow-ups
Native screenshots
Before:
1a931a5129f9697ab86efe10fb6d5dc79a531b1a· After:e8d75a00d56a820dc69e434af85fe1252b7f6067.Same isolated Electron dev app, core
1e2cee69ade40d437e169f712bd6599dfa1d58db, fixture, route and initial window positions. Home composer focused in both. Native window 1280×900; Retina captures 2560×1800. Before moves the Desktop QA folder window downward; after preserves its position.BB-Thread-ID: thr_xitrpg5vep