mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 05:08:26 +02:00
Close Stream settings dialog when not clicking on any child elements
This commit is contained in:
5
dist/better-xcloud.user.js
vendored
5
dist/better-xcloud.user.js
vendored
File diff suppressed because one or more lines are too long
@@ -643,6 +643,15 @@ export class StreamSettings {
|
|||||||
this.hide();
|
this.hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Close dialog when not clicking on any child elements in the dialog
|
||||||
|
$container.addEventListener('click', e => {
|
||||||
|
if (e.target === $container) {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
this.hide();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
for (const settingTab of this.SETTINGS_UI) {
|
for (const settingTab of this.SETTINGS_UI) {
|
||||||
if (!settingTab) {
|
if (!settingTab) {
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user