mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-24 21:03:31 +03:00
Move gamepaddisconnected listener
This commit is contained in:
parent
679e873875
commit
baa81126c4
@ -24,7 +24,10 @@ window.addEventListener('gamepadconnected', (e) => {
|
||||
isWaiting = false;
|
||||
}
|
||||
}, 10);
|
||||
window.addEventListener('gamepaddisconnected', (e) => clearInterval(gamepads[e.gamepad.index]));
|
||||
});
|
||||
|
||||
window.addEventListener('gamepaddisconnected', (e) => {
|
||||
clearInterval(gamepads[e.gamepad.index]);
|
||||
});
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user