WebUI: implement debounce behavior for resize events

This commit is contained in:
Chocobo1
2024-08-09 17:48:03 +08:00
parent 0c580c3174
commit 29379232aa
6 changed files with 43 additions and 31 deletions

View File

@@ -837,9 +837,9 @@
maximizable: false,
width: loadWindowWidth(id, 800),
height: loadWindowHeight(id, 650),
onResize: () => {
onResize: window.qBittorrent.Misc.createDebounceHandler(500, (e) => {
saveWindowSize(id);
},
}),
resizeLimit: {
"x": [800, 2500],
"y": [500, 2000]