Files
magpie/internal
yetone 08982805eb gui: spinners stand still under reduced motion instead of flickering
_yukirock on X (0.1.3036, macOS 27.3): spinners ran far too fast. The
reduced-motion rule cut every animation to .01ms but left endless ones
endless, so a spinner restarted every few microseconds and each frame
caught it at a random angle (seen frame by frame in the reporter's
video: the arc jumps 90-180 degrees per 60fps frame). It hits anyone
with the system's Reduce Motion, or magpie's own (Settings > General).

The rule now also sets animation-iteration-count: 1, so an endless
animation runs once, ends at once and shows its base style, as the
spinners that declare `animation: none` there already did (ag-up,
quota-refresh, saving). routing.css's busy spinner asked for a 2s turn
under reduced motion; the global !important rule always overrode it, and
it now stands still with the rest.

reduce-motion.test.cjs puts a sign-in spinner in the page and waits up to
1s for its animations to finish: they do while motion is reduced, and
never otherwise. (Counting running animations two frames on was red in
Chromium at the rebased head: a compositor animation can take longer to
start.)

Run on mote (Chromium and WebKit):
- reduce-motion plus every GUI file that reads animations under reduced
  motion (33 files, 1034 tests): 1011 pass, 23 fail. The failing four
  files (context-map, found-skill-pick-remove, mobile-web,
  tray-cell-click) fail the same on origin/main a732f3c49 run alone
  (24 vs 24, context-map's chromium 420px case flips language): filed as
  #3488, #4932, #5013, #3952, #5215.
- Broken by hand: the new test on the old app.css is red (spin 1 where 0).
- go test -tags nogui ./internal/gui: ok. gofmt -l clean.
At the pushed head: reduce-motion 6 of 6 runs green in both engines,
sync-spin green; the new test red on the old app.css (0 of 2).
Not tried: the real app with macOS Reduce Motion on.
2026-11-05 17:09:10 +08:00
..
…
…
…
…
…
…
…