Skip to content

Fixes mouse coordinates for Windows when display is set to a higher DPI - #7362

Merged
zcbenz merged 1 commit into
electron:masterfrom
bsclifton:fix-windows-draggable-high-dpi
Sep 28, 2016
Merged

zcbenz merged 1 commit into
electron:masterfrom
bsclifton:fix-windows-draggable-high-dpi

Conversation

@bsclifton

Copy link
Copy Markdown
Contributor

Fixes mouse coordinates for Windows when display is set to a higher DPI (ex: enlarged by 150% using display settings)

Draggability was being impacted when display settings were bumped up. The wrong coordinates would be considered for the hit testing.

Fixes #7347

…PI (ex: enlarged by 150% using display settings)
@zcbenz

zcbenz commented Sep 28, 2016

Copy link
Copy Markdown
Contributor

👍

@MarshallOfSound

Copy link
Copy Markdown
Member

@bsclifton @zcbenz I think this has broken mouse position inside a webview element.

My app currently has an issue where the mouse point would stutter all over the place in a webview (seemingly in multiple places at once)

If you read this issue thread from this comment down MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-#1777 (comment)

You can see that users disabling display scaling fix the issue. This PR seems to correspond with the version jump that caused the issue. Any thoughts on whether this is the cause?

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.

3 participants