mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 15:47:18 +02:00
Use window.scrollTo()
This commit is contained in:
parent
d37a16169f
commit
af5e92057d
@ -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();
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user