Browse Source

try to move joysticks to correct position after orientation change

main
Hendrik Langer 4 years ago
parent
commit
133019fc86
  1. 5
      raspberry/roberto/views/frontend/templates/gamepad.js

5
raspberry/roberto/views/frontend/templates/gamepad.js

@ -154,3 +154,8 @@ setInterval(function(){
} }
} }
}, 50); }, 50);
window.addEventListener("orientationchange", function(event) {
joystick._updatePositionOfContainer();
joystick2._updatePositionOfContainer();
});

Loading…
Cancel
Save