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

wpf: fixup mouse wheel events from screen coords #7168

Merged
1 commit merged into from
Aug 4, 2020

Conversation

DHowett
Copy link
Member

@DHowett DHowett commented Aug 4, 2020

I found this while crawling through conhost's WindowIo. Mouse wheel
events come in in screen coordinates, unlike literally every other mouse
event.

The WPF control was doing it wrong.

I found this while crawling through conhost's WindowIo. Mouse wheel
events come in in screen coordinates, unlike literally every other mouse
event.

The WPF control was doing it wrong.
@DHowett
Copy link
Member Author

DHowett commented Aug 4, 2020

this is unbelievable.

@DHowett DHowett requested review from zadjii-msft and carlos-zamora and removed request for zadjii-msft August 4, 2020 01:03
Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

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

Huh, would you look at that, we're already doing this in the mouse wheel hack in IslandWindow.cpp. Good catch

@zadjii-msft zadjii-msft added Area-WPFControl Things related to the WPF version of the TermControl Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Second It's a PR that needs another sign-off labels Aug 4, 2020
@ghost ghost requested review from miniksa and leonMSFT August 4, 2020 14:04
@DHowett DHowett added the AutoMerge Marked for automatic merge by the bot when requirements are met label Aug 4, 2020
@ghost
Copy link

ghost commented Aug 4, 2020

Hello @DHowett!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit cd72356 into master Aug 4, 2020
@ghost ghost deleted the dev/duhowett/wpf-wheel-world branch August 4, 2020 17:38
DHowett added a commit that referenced this pull request Aug 4, 2020
I found this while crawling through conhost's WindowIo. Mouse wheel
events come in in screen coordinates, unlike literally every other mouse
event.

The WPF control was doing it wrong.

(cherry picked from commit cd72356)
DHowett added a commit that referenced this pull request Aug 4, 2020
I found this while crawling through conhost's WindowIo. Mouse wheel
events come in in screen coordinates, unlike literally every other mouse
event.

The WPF control was doing it wrong.

(cherry picked from commit cd72356)
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-WPFControl Things related to the WPF version of the TermControl AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Second It's a PR that needs another sign-off
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants