mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-09 00:52:30 -06:00
WebUI: implement debounce behavior for resize events
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user