HoldDownTimer
HoldDownTimer is a UI timing pattern used to detect when a user intentionally holds a control or key for a specified duration, triggering an action or series of actions. It is commonly employed to support long-press interactions, context menus, accessibility features, and other actions that should not be invoked by a brief tap.
Typical behavior involves starting a timer when a press begins (mouse down, touch start, or a focused
Implementation considerations include handling cancellation and edge cases. The timer should be cleared if the pointer
Common use cases include opening a context menu, enabling advanced options, adjusting a value by holding a