Holding movement threshold #19112
-
I believe I have asked this before but I can't find the question/answer. Is there a way to change the tolerance/threshold for holding a button to a larger value than what it's current? On my small touchscreen (Skia, RPi) I have a button close to the edge of the screen and I want to detect |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey @HakanL, Thank you for your question! I don't think we/WinUI have a feature like this directly, but you can work around it using the |
Beta Was this translation helpful? Give feedback.
Hey @HakanL,
Thank you for your question! I don't think we/WinUI have a feature like this directly, but you can work around it using the
OnPointerPressed
,OnPointerMoved
, andOnPointerReleased
methods. You can start a timer when the button is pressed and stop it if the pointer is released or moves outside a certain threshold. Let me know if this helps!