mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 08:46:55 +00:00
prevent double-tab zoom on action pad (#1593)
This commit is contained in:
parent
48f2ecf39a
commit
8bc2c19361
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user