Repository navigation
fix: draggable region position with docked DevTools - #49822
Merged
Merged
Conversation
dsanders11
approved these changes
Feb 18, 2026
jkleinsc
approved these changes
Feb 18, 2026
|
Release Notes Persisted
|
This was referenced Feb 18, 2026
Contributor
|
I have automatically backported this PR to "39-x-y", please check out #49846 |
Contributor
|
I have automatically backported this PR to "40-x-y", please check out #49847 |
Contributor
|
I have automatically backported this PR to "41-x-y", please check out #49848 |
5 of 6 tasks
kycutler
pushed a commit
to kycutler/electron
that referenced
this pull request
Feb 26, 2026
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.
Description of Change
Closes #46256
Fixes draggable regions not updating their position when DevTools is docked to the left (or right) side of a frameless window. The issue was that
WebContentsView::NonClientHitTest()was converting the hit-test point from widget coordinates to theInspectableWebContentsViewcoordinate space, but the draggable region stored on theWebContentsis relative to thecontents_web_view_. When DevTools is docked to the side,contents_web_view_is offset within theInspectableWebContentsView, causing the coordinate spaces to be misaligned — so hits were being tested against the wrong position.This converts the point to
contents_web_view_coordinates instead, which correctly accounts for any offset introduced by docked DevTools.Checklist
npm testpassesRelease Notes
Notes: Fixed draggable regions not updating position when DevTools is docked to the left or right in a frameless window.