Skip to content

fix: draggable region position with docked DevTools - #49822

Merged
jkleinsc merged 1 commit into
mainfrom
fix-drag-devtools
Feb 18, 2026
Merged

jkleinsc merged 1 commit into
mainfrom
fix-drag-devtools

Conversation

@codebytere

Copy link
Copy Markdown
Member

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 the InspectableWebContentsView coordinate space, but the draggable region stored on the WebContents is relative to the contents_web_view_. When DevTools is docked to the side, contents_web_view_ is offset within the InspectableWebContentsView, 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

Release Notes

Notes: Fixed draggable regions not updating position when DevTools is docked to the left or right in a frameless window.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/39-x-y PR should also be added to the "39-x-y" branch. target/40-x-y PR should also be added to the "40-x-y" branch. target/41-x-y PR should also be added to the "41-x-y" branch. labels Feb 17, 2026
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Feb 17, 2026
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Feb 18, 2026
@jkleinsc
jkleinsc merged commit dfdf049 into main Feb 18, 2026
122 of 123 checks passed
@jkleinsc
jkleinsc deleted the fix-drag-devtools branch February 18, 2026 16:49
@release-clerk

release-clerk Bot commented Feb 18, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed draggable regions not updating position when DevTools is docked to the left or right in a frameless window.

@trop

trop Bot commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "39-x-y", please check out #49846

@trop

trop Bot commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "40-x-y", please check out #49847

@trop trop Bot removed the target/39-x-y PR should also be added to the "39-x-y" branch. label Feb 18, 2026
@trop

trop Bot commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "41-x-y", please check out #49848

@trop trop Bot added in-flight/40-x-y in-flight/41-x-y merged/41-x-y PR was merged to the "41-x-y" branch. merged/39-x-y PR was merged to the "39-x-y" branch. and removed target/40-x-y PR should also be added to the "40-x-y" branch. target/41-x-y PR should also be added to the "41-x-y" branch. in-flight/41-x-y in-flight/39-x-y labels Feb 18, 2026
@trop trop Bot added merged/40-x-y PR was merged to the "40-x-y" branch. and removed in-flight/40-x-y labels Feb 19, 2026
kycutler pushed a commit to kycutler/electron that referenced this pull request Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged/39-x-y PR was merged to the "39-x-y" branch. merged/40-x-y PR was merged to the "40-x-y" branch. merged/41-x-y PR was merged to the "41-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The draggable area does not move to a new location if you open the developer tools and place them on the left edge

3 participants