PointerPoint.Timestamp should be in microseconds #14535
Labels
difficulty/medium 🤔
Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI
kind/bug
Something isn't working
platform/all
Categorizes an issue or PR as relevant to the all platforms
project/pointers 🖱️
Categorizes an issue or PR as relevant to mouse/touch/pen pointers
Current behavior
But some places in uno assume this to be ticks, like the
GestureRecognizer
for the hold: https://github.com/unoplatform/uno/blob/master/src/Uno.UWP/UI/Input/GestureRecognizer.Gesture.cs#L392. We need to review all usages of thisTimestamp
property.The
GestureRecognizer.GetVelocities
also assume ticksuno/src/Uno.UI/UI/Input/GestureRecognizer.Manipulation.cs
Line 499 in dc04707
Expected behavior
Micro seconds as on windows The time, relative to the system boot time, in microseconds. (Note: this should be confirmed as it already happen that the docs differs from observations for those kind of core low-level properties).
Anything else we need to know?
This property is documented to be relative to the system boot time, but this might have a negative perf impact on some platforms (e.g. Android) or even completely impossible to get. As this property is usually only used relative to itself (e.g. determine since how long the pointer is down), the only important thing is to have a valid value and in the right unit, the origin is not really relevant.
The text was updated successfully, but these errors were encountered: