diff options
| author | Fuwn <[email protected]> | 2026-04-19 11:04:12 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-04-19 11:04:12 +0000 |
| commit | 28860bb88da4c08e3ba383adc9c23ae3689310b6 (patch) | |
| tree | 4bffd765ca23d412b2065179f4e60993b824ca1a /src/graphql/user/schema.graphql | |
| parent | Revert "fix(tooltip): park measurement node off-screen to stop body resize" (diff) | |
| download | due.moe-28860bb88da4c08e3ba383adc9c23ae3689310b6.tar.xz due.moe-28860bb88da4c08e3ba383adc9c23ae3689310b6.zip | |
fix(tooltip): use fixed positioning and snappy cursor tracking
Body grew on hover because the absolutely-positioned tooltip was appended to
document.body without top/left, so its static-flow position extended
body.scrollWidth/scrollHeight during layout measurement.
Switch both the use:tooltip directive and LinkedTooltip's measurement div to
position:fixed, which is relative to the viewport and does not contribute to
the body's scroll area. The directive now also uses clientX/clientY (dropping
the scrollY offset for the pin branch), removes the 100ms mousemove debounce,
and drops the top/left transition so the tooltip tracks the cursor without
feeling laggy or sliding in from the page top.
Diffstat (limited to 'src/graphql/user/schema.graphql')
0 files changed, 0 insertions, 0 deletions