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: Fix the TouchDevice lost the touch Pressure #15297

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

lindexi
Copy link
Contributor

@lindexi lindexi commented Apr 10, 2024

What does the pull request do?

After #15283 , and I can find the touch pressure on X11 platform. But I can not receive the touch pressure from Avalonia.Input.PointerEventArgs. And I find the TouchDevice will lost the touch pressure when create the
PointerPointProperties.

What is the current behavior?

We can not receive the Touch Pressure in Avalonia.Input.PointerEventArgs on X11 platform.

What is the updated/expected behavior with this PR?

We can receive the Touch Pressure in Avalonia.Input.PointerEventArgs on X11 platform.

How was the solution implemented (if it's not obvious)?

I append the RawPointerPoint to PointerPointProperties in TouchDevice in this pull request.

Checklist

  • Added unit tests (if possible)? It is hard to write the unit tests.
  • Added XML documentation to any related classes? No new public API was introduced.
  • Consider submitting a PR to https://github.com/AvaloniaUI/avalonia-docs with user documentation

Breaking changes

Obsoletions / Deprecations

Fixed issues

Fixes #3540

@lindexi
Copy link
Contributor Author

lindexi commented Apr 10, 2024

I test this PR and #15283 by my demo code. And I run it in the device with the Touch screen. And I can receive the touch pressure in PointerMoved.

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0047092-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added this pull request to the merge queue Apr 10, 2024
@maxkatz6 maxkatz6 added bug backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Apr 10, 2024
Merged via the queue into AvaloniaUI:master with commit 3cecae9 Apr 10, 2024
10 checks passed
@lindexi lindexi deleted the t/lindexi/TouchDevice branch April 10, 2024 08:32
@maxkatz6 maxkatz6 added backported-11.1.x and removed backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Apr 20, 2024
@lindexi lindexi mentioned this pull request Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pressure Pen (e.g. Wacom) API
3 participants