(e: ChangeEvent<HTMLInputElement>)
| 425 | }); |
| 426 | |
| 427 | const onChange = (e: ChangeEvent<HTMLInputElement>) => { |
| 428 | const {target} = e; |
| 429 | setValueChangedViaInputChangeEvent(true); |
| 430 | if (target === inputXRef.current) { |
| 431 | state.setXValue(parseFloat(target.value)); |
| 432 | } else if (target === inputYRef.current) { |
| 433 | state.setYValue(parseFloat(target.value)); |
| 434 | } |
| 435 | }; |
| 436 | |
| 437 | let isMobile = isIOS() || isAndroid(); |
| 438 |