mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
WebUI: implement debounce behavior for resize events
This commit is contained in:
parent
0c580c3174
commit
29379232aa
6 changed files with 43 additions and 31 deletions
|
@ -502,9 +502,9 @@ window.qBittorrent.Search ??= (() => {
|
|||
paddingHorizontal: 0,
|
||||
width: loadWindowWidth(id, 600),
|
||||
height: loadWindowHeight(id, 360),
|
||||
onResize: function() {
|
||||
onResize: window.qBittorrent.Misc.createDebounceHandler(500, (e) => {
|
||||
saveWindowSize(id);
|
||||
},
|
||||
}),
|
||||
onBeforeBuild: function() {
|
||||
loadSearchPlugins();
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue