mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-05 20:58:27 +02:00
Fix Stream menu's grip handle
This commit is contained in:
@@ -145,6 +145,9 @@ export class StreamUiHandler {
|
|||||||
// Grip handle
|
// Grip handle
|
||||||
const $gripHandle = document.querySelector('#StreamHud button[class^=GripHandle]') as HTMLElement;
|
const $gripHandle = document.querySelector('#StreamHud button[class^=GripHandle]') as HTMLElement;
|
||||||
if ($gripHandle && $gripHandle.ariaExpanded === 'true') {
|
if ($gripHandle && $gripHandle.ariaExpanded === 'true') {
|
||||||
|
$gripHandle.dispatchEvent(new PointerEvent('pointerdown'));
|
||||||
|
$gripHandle.click();
|
||||||
|
$gripHandle.dispatchEvent(new PointerEvent('pointerdown'));
|
||||||
$gripHandle.click();
|
$gripHandle.click();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user