Skip to content

Commit

Permalink
📝 fix parallax tilt demo
Browse files Browse the repository at this point in the history
  • Loading branch information
elmarti committed Nov 24, 2022
1 parent 9865683 commit 12a0409
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Joystick.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ joystickStories.add("Controlling a react-parallax-tilt ", () => {
const [[manualTiltAngleX, manualTiltAngleY], setManualTiltAngle] = useState([0, 0] as Array<number|null>);

const onMove = (stick:IJoystickUpdateEvent) => {
setManualTiltAngle([stick.y, stick.x]);
//@ts-ignore
setManualTiltAngle([stick.y * 100, stick.x * 100]);
};

const onStop = () => {
Expand Down

0 comments on commit 12a0409

Please sign in to comment.