mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-09-08 05:06:35 +02:00
Use window.scrollTo()
This commit is contained in:
@@ -10179,7 +10179,7 @@ function injectSettingsButton($parent) {
|
||||
onClick: e => {
|
||||
const $settings = document.querySelector('.bx-settings-container');
|
||||
$settings.classList.toggle('bx-gone');
|
||||
$settings.scrollIntoView();
|
||||
window.scrollTo(0, 0);
|
||||
document.activeElement && document.activeElement.blur();
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user