mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-09 03:16:36 +00:00
Fixed compact mode not hiding sometimes and having too much trigger area
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user