Files
magpie/internal
yetone cf455ebd5f gui: a view at its top when a control is clicked stays at its top, what came in above moving the control down (#2134)
The click guard's own rule says "A view at its top stays at its top:
what comes in above the control there moves it down instead of
scrolling itself out of sight", but hold() only kept that rule for the
room at the foot. Anything that grew above the held control scrolled
the view to follow it. At 420 wide, Settings › About turning Automatic
updates Off gave the Version row its "are off" line ~2.3px tall once the
save answered, and the view slid from 0 to 2. hold() now keeps a view
that was at its top (h.top) at 0, so the switch moves down by those
pixels instead.

Tests:
- update-auto: a new case at 420x640 clicks Off with Settings at its top
  and checks scrollTop after the save's redraw (600ms), not only right
  after the click. On origin/main's app.js it is red in both engines
  (2 !== 0); with the change green.
- update-restart (#2096) held the switch to within 1px, which is the
  old behaviour at the top. It now checks the at-top rule when the view
  is at its top (scrollTop 0, switch down by at most 4px), and the old
  1px hold otherwise.

Run (load avg 200-340 from other sessions):
- update-auto + update-restart, chromium and webkit, widths 1100 and
  420, en/zh/zh-TW/ja/de: 32/32.
- 71 scroll-guard files (click-scroll, *scroll*, *steady*, *pin*,
  *profile*, settings*, stays-strict, held-animations, and every file
  checking "must not scroll the page"), both engines, 4 wide: 921 pass,
  11 fail. The fails are nav-sub-unroll, removed-groups-menu-scroll,
  settings-proxy-auth and text-size. Alone, settings-proxy-auth passes
  10/10 and nav-sub-unroll chromium 2 of 2; nav-sub-unroll webkit,
  removed-groups-menu-scroll and text-size are red alone on origin/main
  bda271999's app.js too (#1950, #1866, filed #2172).
Not tried: the real app window; only the Playwright engines.
2026-10-14 18:25:52 +08:00
..
…
…