-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Error with different css-positions #10
Comments
Hi @morasp can you send me more detail of your problem? |
If I position the Container with css
the movement of the stick is restricted to sidewards movement (I have only tested vertical repositioning) |
Hi @morasp, I think the problem is due to the absolute positioning that you used. |
Hi, |
I discover that's trick. You should create a div before joystick. Also Thanks guy, after I publish my game I'll add you to credits. But I just started the game :D |
Yes if you use DIV and put the JoyStick into it work correctly. |
Hi guys, I'm happy to declare this issue closed, now you can use FIXED or ABSOLUTE position in the CSS style. |
When working with a CSS position other than the default, the joystick can not be moved correctly.
I suspect, this is an issue with the calculation of the movement.
I suggest to calculate the movement based on the last and the current position.
The text was updated successfully, but these errors were encountered: