]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
ui: logpanel: catch up to very fast task logs with api calls
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 23 Nov 2021 12:02:29 +0000 (13:02 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 23 Nov 2021 13:47:20 +0000 (14:47 +0100)
commit2f47411867db4fed11d9096b0d847e1acdd414c9
tree01a23bac043e95ebc69ffb95ccaf034ddd47e80b
parentb5ff20a615649c1c624ad3569aed479877fbd9a9
ui: logpanel: catch up to very fast task logs with api calls

by updating the start to 'total-limit' if we follow the task log live.
to do that, we decouple the 'scroll' event from updating the 'start'
parameter and call that directly after we scrolled down.

to not trigger the scroll event multiple times, suspend the scroll event
while doing that.

while we're touching those lines, remove the 'setTimeout' workaround
for touchscreens, since it seems to work fine since extjs 7.0

this also fixes the issue that the scroll event is not called sometimes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/panel/LogView.js