mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 15:47:18 +02:00
Minor fix
This commit is contained in:
parent
c520fde438
commit
0722e02ab0
@ -168,7 +168,7 @@ class TouchController {
|
||||
static #dispatchMessage(msg) {
|
||||
TouchController.#dataChannel && setTimeout(() => {
|
||||
TouchController.#dataChannel.dispatchEvent(msg);
|
||||
}, 100);
|
||||
}, 10);
|
||||
}
|
||||
|
||||
static setup() {
|
||||
@ -231,7 +231,7 @@ class TouchController {
|
||||
|
||||
// Fix sometimes the touch controller doesn't show at the beginning
|
||||
dataChannel.addEventListener('open', e => {
|
||||
TouchController.#show();
|
||||
setTimeout(TouchController.#show, 1000);
|
||||
});
|
||||
|
||||
dataChannel.addEventListener('message', msg => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user