dotnet / dotnet/maui

PanGestureRecognizer's PanUpdated event's data has severe fluctuations on HarmonyOS 4.x devices

Open
#32,097 1 comment 0 reactions 0 assignees View on GitHub
area-gestures t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 10h
Merged PRs (30d)
297

Description

### Description

PanGestureRecognizer's PanUpdated event's TotalX and TotalY has a severe fluctuations, and there is a huge deviation on how long you moved (TranslationX) than your finger actually moved.

### Steps to Reproduce

1. clone [this](https://github.com/0xeeeeeeeeeeee/ImNotARobot_PanGestureRecognizerDemo) repo
2. deploy to any HUAWEI phone/tablet running HarmonyOS 4.x
3. Drag the yellow slider on the screen to the right,
4. and you will see the yellow slider constantly trembling and extremely difficult to move.
like this:

https://github.com/user-attachments/assets/74f03213-8be3-43e1-9336-eba7cda62634

(The white dot represents the position of my finger.)

excepted to see this:

https://github.com/user-attachments/assets/5e70b721-f426-4baf-b112-c21e8f137922

You can use the .csv file that pops up in the share menu for further analysis.

### Link to public reproduction project repository

https://github.com/0xeeeeeeeeeeee/ImNotARobot_PanGestureRecognizerDemo

### Version with bug

10.0.0-rc.2

### Is this a regression from previous behavior?

Not sure, did not test other versions

### Last version that worked well

Unknown/Other

### Affected platforms

Android

### Affected platform versions

HarmonyOS 4.2.0.185

### Did you find any workaround?

nope

I also tried .net 9 and it doesn't work at I excepted all.

I haven't tried on other platform.

[logs.zip](https://github.com/user-attachments/files/23006321/logs.zip)

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.