Files
OrcaSlicer/resources/web/dialog/SpeedDial
Lam Wei LunandSoftFever d2ade00ad8 Speed Dial: fix side effects of single-click launch (#17301)
* Speed Dial: fix side effects of single-click launch

Follow-up to the single-click launch behaviour:
- hovering a row or favourite previews it in the footer, so its description
  and wiki link stay readable without running it
- the click that dismisses the pin menu only closes the menu instead of also
  running the row under the cursor
- a double-click on "Go to tab..." no longer jumps to the tab that renders
  under the cursor

* Speed Dial: keep the hover preview on the row the pointer rests on

mouseenter also fires when rows move under a stationary pointer, so typing
a search or pressing the arrow keys moved the footer onto whatever row
scrolled beneath it while Enter still ran the highlighted one. Listen to
mousemove instead: only the pointer's own motion previews a row.

Moving from a row to the footer crosses the rows below it, and each of
them replaced the preview, so the Wiki link belonged to the last row
crossed. Commit the preview only after the pointer rests (150 ms) and
drop a pending one when it leaves the list, so the footer keeps the row
the pointer came from.

* Speed Dial: restart the hover preview timer on pointer movement

The 150 ms settle timer ran from the moment the pointer entered a row, so a row that took longer than that to cross was previewed on the way down to the footer; the wiki link then described a crossed row instead of the row the pointer came from.

Restart the wait on every move of 6 px or more and cap it at 1 s, so a crossed row is never committed while a pointer that never rests still previews the row it stays on. Moves under 6 px are hand jitter and keep the running timer, so a shake still previews. The timing is pinned by a node-vm regression test with faked timers.

---------

Co-authored-by: SoftFever <103989404+SoftFever@users.noreply.github.com>
2026-11-06 20:10:29 +08:00
..