chart/docs
Chris Amow 8f71beb59f Hand off the residual 10px overlay offset
The snap indicator still draws about one bar left of the cursor, with the right
height and the right bar chosen. Measured: bar spacing 6.96px, dot centre 10.5px
left of the cursor, and syncOverlayLayer reading containerLeft 56 against a true
plot offset of 66.

It runs once in a requestAnimationFrame during create(), before the left price
scale has sized itself to its label text. The offset settles at 66 once labels
render and nothing re-measures, so the container — and every overlay in it —
stays 10px left for the life of the page. Only x is affected, which is why the
height has always looked correct.

Written up at the bottom of the plan with the measurements, the three candidate
fixes, the trap that the scale's width tracks its label text, and a note that
the e2e suite cannot catch this because its assertions go through the same
coordinate API that carries the error — a page-pixel assertion is needed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-11 02:07:17 -05:00
..
IMPLEMENTATION_PLAN.md Hand off the residual 10px overlay offset 2026-08-11 02:07:17 -05:00