GUI: fix mobile controls time scaling

This commit is contained in:
tildearrow 2023-10-16 19:50:15 -05:00
parent 7dfb7e916c
commit 11e9cd3a07

View file

@ -169,7 +169,7 @@ const bool mobileButtonPersist[32]={
};
void FurnaceGUI::drawMobileControls() {
float timeScale=1.0f/(60.0f*ImGui::GetIO().DeltaTime);
float timeScale=60.0*ImGui::GetIO().DeltaTime;
if (dragMobileMenu) {
if (portrait) {
mobileMenuPos=(dragMobileMenuOrigin.y-ImGui::GetMousePos().y)/(canvasH*0.65);