hoodquidity/apps
Денис Зефиров 9f00841623
All checks were successful
deploy / deploy (push) Successful in 49s
fix: depth chart crosshair tracks cursor when SVG is letterboxed
DepthChart maps the mouse to SVG space with getBoundingClientRect, which
assumes the drawing fills the container. The viewBox (960x380) is narrower
than the container, so preserveAspectRatio centers it with ~127px of side
padding and the crosshair drifted ~100px from the cursor near the edges.
Map through the SVG's own getScreenCTM().inverse() so it stays exact
regardless of letterboxing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-11 23:33:58 +04:00
..
web fix: depth chart crosshair tracks cursor when SVG is letterboxed 2026-07-11 23:33:58 +04:00