Open mtwichan opened 6 years ago
it's supported by nipplejs (used by dash-daq) out of the box.
you can now give two new props to the joystick component for the same.
This will lock the movement of stick in Y direction so you can only move it vertically.
Joystick( label="Joystick", labelPosition="bottom", lockX=False, lockY=True ),
In cases where the joystick should only move in 2 directions (up and down only or left and right only) it would be nice to have it so the joystick only moves in the two specified directions, so users don't get confused with empty commands.