Inconsistent Holding state #19113
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
triage/untriaged
Indicates an issue requires triaging or verification
Current behavior
I catch the
Holding
event on aCard
and if I get the holding event then I navigate to a different screen (think "options" for an item). If I tap the card then I execute the command for the card (it's like a menu). The issue is that if I hold, navigate to the options screen and then back. If I tap the same card then theHolding
event is triggered when I expected theTapped
event. I log when the screen is tapped/released, and I added a log event for the Holding event and I see this:Basically the holding event came in 630 ms after the screen was released. I tapped the screen in 178 ms so that shouldn't start a holding event. If I instead of triggering my hold event when the state is
Completed
then the action is way too long, I have to hold for a long time which isn't a good user experience.My preference would be to control the hold threshold and how long the user has to hold, but there still seems to be an issue with how the holding event is raised. Perhaps it's because I'm navigating to a different view and that doesn't reset the holding timer for something? Here's the log for when the holding event isn't triggered:
Basically the same type of tap, 170 ms, but no holding event is raised.
Expected behavior
Consist holding event every time I tap/hold a card
How to reproduce it (as minimally and precisely as possible)
No response
Workaround
No response
Works on UWP/WinUI
None
Environment
Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia
NuGet package version(s)
"Uno.Sdk.Private": "5.6.0-PullRequest-19054-150374-19054.1190"
Affected platforms
Skia (Linux X11)
IDE
Visual Studio 2022
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: