diff --git a/src/Joystick.stories.tsx b/src/Joystick.stories.tsx index 382e023..6e9440d 100644 --- a/src/Joystick.stories.tsx +++ b/src/Joystick.stories.tsx @@ -107,7 +107,8 @@ joystickStories.add("Controlling a react-parallax-tilt ", () => { const [[manualTiltAngleX, manualTiltAngleY], setManualTiltAngle] = useState([0, 0] as Array); const onMove = (stick:IJoystickUpdateEvent) => { - setManualTiltAngle([stick.y, stick.x]); + //@ts-ignore + setManualTiltAngle([stick.y * 100, stick.x * 100]); }; const onStop = () => {