Fixed compact mode not hiding sometimes and having too much trigger area

This commit is contained in:
mr. M
2024-12-25 19:49:23 +01:00
parent d6411dc480
commit 67556eba74
3 changed files with 15 additions and 11 deletions

View File

@@ -79,5 +79,13 @@ var gZenCommonActions = {
);
ConfirmationHint.show(document.getElementById("PanelUI-menu-button"), "zen-copy-current-url-confirmation");
}
},
throttle(f, delay) {
let timer = 0;
return function (...args) {
clearTimeout(timer);
timer = setTimeout(() => f.apply(this, args), delay);
};
}
};