prevent double-tab zoom on action pad (#1593)

This commit is contained in:
flx-sta 2024-05-29 21:35:50 -07:00 committed by GitHub
parent 48f2ecf39a
commit 8bc2c19361
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ let lastTouchedId: string;
*/
export function initTouchControls(buttonMap: ButtonMap) {
preventElementZoom(document.querySelector("#dpad"));
preventElementZoom(document.querySelector("#apad"));
for (const button of document.querySelectorAll<HTMLElement>("[data-key]")) {
bindKey(button, button.dataset.key, buttonMap);