]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
log viewer: add heuristic for scroll-direction dependent ratio distribution
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 Nov 2021 17:23:35 +0000 (18:23 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 Nov 2021 17:23:37 +0000 (18:23 +0100)
commit4e95d1e9069a9ab0dbeba109a42f4f8e655b2358
treeaff8c01fdf173ea89c0b35ad633b3df20afe6ed9
parenta16b036be0e457e65b02c4bff3e814ec367aea58
log viewer: add heuristic for scroll-direction dependent ratio distribution

if the user scrolls down make 2/3 of the buffer load the downward
(newer) buffer and only 1/3 the upward (older), and vice versa, if
the user scrolls up load 2/3 of the older messages vs. 1/3 of newer
ones.

If the user scrolls around frantically we're roughly as good as
previously and in all other cases we're better now.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/panel/LogView.js