Commit 6b275ef
committed
Use half-open hit tests for switch row clamp
Adjacent rows shared the same boundary because in_rect() used closed
intervals on both edges, which made the switch-specific nextafterf()
workaround necessary. Use half-open rect bounds and clamp the expanded
switch hit rect to row_height so boundary ownership is consistent
and the switch fix no longer relies on fragile edge adjustment.1 parent acc0636 commit 6b275ef
2 files changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1296 | 1296 | | |
1297 | 1297 | | |
1298 | 1298 | | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
| 1299 | + | |
1302 | 1300 | | |
1303 | | - | |
| 1301 | + | |
1304 | 1302 | | |
1305 | 1303 | | |
1306 | 1304 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
510 | | - | |
511 | | - | |
| 510 | + | |
| 511 | + | |
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
| |||
0 commit comments