fix(grip): open hover popup without requiring mouse motion

Dwell timing only advanced when `ViewportMove` fired; a perfectly
still cursor never triggered the popup. Subscribe to animation
frames while `grip_hover` is set and dispatch `GripDwellTick` from
them so `update_grip_hover` re-checks the elapsed dwell each frame.
Subscription auto-stops as soon as the hover clears or the popup
opens.
This commit is contained in:
Hakan Seven committed 2026-05-29 09:38:37 +03:00
1 parent 6c1462932d
commit 595ee3e245
3 files changed
+29

No files matched your search

+3
View File
@@ -453,6 +453,9 @@ pub enum Message {
/// User picked an item in the multi-functional grip popup menu —
/// the index is into `grip_popup.items`.
GripMenuPick(usize),
/// Timer pulse while the cursor is dwelling on a grip; drives the
/// dwell-to-popup transition without requiring further mouse motion.
GripDwellTick,
WindowResized(f32, f32),
/// Enter pressed globally — finalises the active command (no text-input involvement).
CommandFinalize,