Allow setting the size of ui.joystick #1707
Closed
falkoschindler
started this conversation in
Ideas / Feature Requests
Replies: 2 comments 1 reply
-
Not only is it tricky to set the size (still), the on_move event callback also doesnt propagate the rest of the metadata from nipple.js. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'll close this feature request as resolved in version 1.4.36. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It's currently pretty tricky to change the size of a
ui.joystick
, i.e. the size of the square drag area. Simply using.style()
or.classes()
does not work, since it only changes the size of the joystick container, not the drag area itself.A workaround is to address the drag area with custom CSS definitions like this:
But we might want to provide a simpler API.
Beta Was this translation helpful? Give feedback.
All reactions