Commit dd5f955
fix(ui): guard slider against non-numeric draft, use onPointerUp
- Range slider value now only uses rotationDraft when it parses to a
finite number; otherwise falls back to the selected node's rotation.
Prevents React warnings from passing "-" to type=range.
- Changed onMouseUp to onPointerUp so the slider commit also fires on
touch devices.
Co-authored-by: DeepSeek V4 <deepseek@v4.ai>1 parent 1449792 commit dd5f955
1 file changed
Lines changed: 20 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
364 | 369 | | |
365 | 370 | | |
366 | 371 | | |
| |||
829 | 834 | | |
830 | 835 | | |
831 | 836 | | |
832 | | - | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
833 | 842 | | |
834 | 843 | | |
835 | 844 | | |
836 | | - | |
| 845 | + | |
837 | 846 | | |
838 | 847 | | |
839 | 848 | | |
| |||
0 commit comments