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: handle non-client area pointer events from pen on Win10 #24042

Merged
merged 1 commit into from Jun 12, 2020

Conversation

zcbenz
Copy link
Member

@zcbenz zcbenz commented Jun 10, 2020

Description of Change

Fix #21440.

Chromium does not handle non-client area pointer events from pen on Windows 10, which ends up with native window frame not responding to pen touches. This is not a problem in Chromium because they use custom frame instead of native frame.

This PR routes the non-client area pointer events from pen to touch events handlers, so they can be properly handled. This should not have side effects since we don't need to distinguish pen from finger in the non-client window frame.

This is tested on Surface Pro 7 with a pen.

Checklist

Release Notes

Notes: Fix window titlebar not responding to pen on Windows 10

@zcbenz zcbenz requested a review from deepak1556 June 10, 2020 00:48
@zcbenz zcbenz requested a review from a team as a code owner June 10, 2020 00:48
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jun 10, 2020
Copy link
Member

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

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

Nice 👍 Thanks for upstreaming the change.

Copy link
Member

@ckerr ckerr left a comment

Choose a reason for hiding this comment

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

Nice work!

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jun 11, 2020
@ckerr ckerr merged commit d5f6429 into master Jun 12, 2020
@release-clerk
Copy link

release-clerk bot commented Jun 12, 2020

Release Notes Persisted

Fix window titlebar not responding to pen on Windows 10

@trop
Copy link
Contributor

trop bot commented Jun 12, 2020

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

@trop
Copy link
Contributor

trop bot commented Jun 12, 2020

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

@trop trop bot removed target/8-x-y labels Jun 12, 2020
@trop
Copy link
Contributor

trop bot commented Jun 12, 2020

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

@trop
Copy link
Contributor

trop bot commented Jun 12, 2020

I have automatically backported this PR to "7-3-x", please check out #24104

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.

Cannot resize/maximize/restore/drag or close the window using pen on touchscreen devices
3 participants