Skip to content

Fixes bug introduced by e7735a8 - #8820

Merged
2 commits merged into
microsoft:mainfrom
rozele:touchBugFix
Oct 13, 2021
Merged

2 commits merged into
microsoft:mainfrom
rozele:touchBugFix

Conversation

@rozele

@rozele Eric Rozell (rozele) commented Oct 12, 2021 •

Copy link
Copy Markdown
Contributor

In order to properly set the pageX and pageY values in TouchEventHandler, we need to ensure the root view is set, which is
used to calculate these properties. By default, the root view is not provided to the TouchEventHandler so we should treat the supplied xamlView argument as the root view. The root view is only supplied for selectable text, where the target XamlView is still a child of the root view, so we need to differentiate where event propagation should stop from the root view the target point is being measured against.

Microsoft Reviewers: Open in CodeFlow

In order to properly set the `pageX` and `pageY` values in
`TouchEventHandler`, we need to ensure the root view is set, which is
used to calculate these properties. By default, the root view is not
provided to the `TouchEventHandler` so we should treat the supplied
`xamlView` argument as the root view.
@rozele
Eric Rozell (rozele) requested a review from a team as a code owner October 12, 2021 15:33
@NickGerleman Nick Gerleman (NickGerleman) added the AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) label Oct 12, 2021
@ghost

Copy link
Copy Markdown

Hello Nick Gerleman (@NickGerleman)!

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.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 10 hours, a condition that will be fulfilled in about 9 hours 53 minutes. No worries though, I will be back when the time is right! 😉

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 removed the AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) label Oct 12, 2021
@NickGerleman Nick Gerleman (NickGerleman) added the AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) label Oct 12, 2021
@asklar

Copy link
Copy Markdown
Member

Original PR: #7813

@ghost
ghost merged commit 23627a0 into microsoft:main Oct 13, 2021
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) Recent Regression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants