Commit 1bb6bb8
fix: honor an explicit zero rotation origin for keys (#175)
Keys with a rotation (r != 0) whose origin rx/ry is explicitly 0 were
pivoted around each key's own corner instead of the layout origin (0,0),
scrambling rotated clusters on boards that rotate about the origin.
`(rx || x)` collapsed a legitimate 0 back to the key's own x; switching to
`(rx ?? x)` keeps an explicit 0 as 0.
Fixes #97
Co-authored-by: Claude <noreply@anthropic.com>1 parent 67c9c3d commit 1bb6bb8
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
| |||
0 commit comments