Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic and absolute position joysticks #32

Open
elmarti opened this issue Jan 10, 2022 · 0 comments
Open

Dynamic and absolute position joysticks #32

elmarti opened this issue Jan 10, 2022 · 0 comments

Comments

@elmarti
Copy link
Owner

elmarti commented Jan 10, 2022

Is your feature request related to a problem? Please describe.
There are some views where we might not want to show a joystick, but use one on-click.
Describe the solution you'd like
Ability to wrap a view in a joystick e.g

<Joystick wrapMode="persist">
...components
</Joystick>

wrapMode controls how the joystick is rendered on-click:

  • persist - the joystick stays where it is after clicking, clicking in a new place moves the joystick
  • sticky- the joystick stays where it is after clicking, clicking in a new place doesn't move the joystick
  • volatile (default) - the joystick disappears after the click ends

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant