Files
figcraft/crates
samhyunandClaude Opus 5.5 e39e563408 M8: dots halfway between pixels stay put across pans, bands and patches
The board's dot grid puts each mark on the device pixel nearest its
page position, measured from the view's top-left. At a zoom of 1.0625 a
step of 24 is 25.5 pixels, so every second mark falls halfway between
two pixels, and a view a whole number of pixels on could put it on the
other one: `round` sends halves away from zero, so a mark left of the
view's origin went left and one right of it went right, and the origin
`(px + offset) / scale` reached the half with another rounding error.
A pan moved those marks by a pixel (up to 123 levels off).

Positions are now rounded to 1/65536 px and then half up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 18:21:00 +09:00
..
…