You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thank you for the great work on touch controls!
I'm trying to apply them on mobile devices and everything works great until I change the device orientation.
If I reload the page on either portrait or landscape, everything works again.
I think the problem is in utils.js where you calculate the rect top and rect left with getBoundingClientRect, which do not change when viewport is.
Have you managed to find a solution?
The text was updated successfully, but these errors were encountered:
Hi, sorry for the late response!
I just updated the code so on window resize event, pads' positions and configs get updated. I think that should do the work.
Checkout #0a309c3
Hello,
First of all thank you for the great work on touch controls!
I'm trying to apply them on mobile devices and everything works great until I change the device orientation.
If I reload the page on either portrait or landscape, everything works again.
I think the problem is in utils.js where you calculate the rect top and rect left with getBoundingClientRect, which do not change when viewport is.
Have you managed to find a solution?
The text was updated successfully, but these errors were encountered: