Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: first mouse not dragging BrowserView #31062

Merged
merged 1 commit into from Sep 23, 2021
Merged

Conversation

codebytere
Copy link
Member

Description of Change

Partially addresses #31058.

Fixes an issue where the DragRegionView did not accept the first mouse click, meaning that the first click would only activate the window and not trigger drag behavior immediately as would occur with a BrowserWindow. This fixes the error by ensuring that acceptsFirstMouse returns YES for DragRegionView.

Tested with https://gist.github.com/0a371fe58ff8c8b72287629ab6d76d34.

Checklist

Release Notes

Notes: Fixes an issue where out-of-focus BrowserViews could not be immediately dragged.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/13-x-y labels Sep 22, 2021
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Sep 22, 2021
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Sep 23, 2021
@jkleinsc jkleinsc merged commit 919fd0f into main Sep 23, 2021
@jkleinsc jkleinsc deleted the fix-bv-drag-first-mouse branch September 23, 2021 21:35
@release-clerk
Copy link

release-clerk bot commented Sep 23, 2021

Release Notes Persisted

Fixes an issue where out-of-focus BrowserViews could not be immediately dragged.

@trop
Copy link
Contributor

trop bot commented Sep 23, 2021

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

@trop
Copy link
Contributor

trop bot commented Sep 23, 2021

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

@trop
Copy link
Contributor

trop bot commented Sep 23, 2021

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

@trop
Copy link
Contributor

trop bot commented Sep 23, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants