mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-08-11 12:44:28 +00:00
log viewer: add heuristic for triggering a new limit load early
Less latency for the user Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
4e95d1e906
commit
1eb5c21d91
@ -161,7 +161,9 @@ Ext.define('Proxmox.panel.LogView', {
|
|||||||
|
|
||||||
let { start, limit } = viewModel.get('params');
|
let { start, limit } = viewModel.get('params');
|
||||||
|
|
||||||
if (viewStart < start || viewEnd > start + limit) {
|
let margin = start < 20 ? 0 : 20;
|
||||||
|
|
||||||
|
if (viewStart < start + margin || viewEnd > start + limit - margin) {
|
||||||
me.updateStart(false, line);
|
me.updateStart(false, line);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user