mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
WebUI: Increase number of buffered virtual rows
Negligible performance hit for increased UX. Currently when scrolling I frequently see blank rows. PR #22853.
This commit is contained in:
parent
9b66693cb8
commit
380d9af34c
1 changed files with 2 additions and 2 deletions
|
@ -915,8 +915,8 @@ window.qBittorrent.DynamicTable ??= (() => {
|
||||||
if (this.dynamicTableDiv.offsetHeight === 0)
|
if (this.dynamicTableDiv.offsetHeight === 0)
|
||||||
return;
|
return;
|
||||||
this.renderedHeight = this.dynamicTableDiv.offsetHeight;
|
this.renderedHeight = this.dynamicTableDiv.offsetHeight;
|
||||||
// show extra 6 rows at top/bottom to reduce flickering
|
// show extra rows at top/bottom to reduce flickering
|
||||||
const extraRowCount = 6;
|
const extraRowCount = 20;
|
||||||
// how many rows can be shown in the visible area
|
// how many rows can be shown in the visible area
|
||||||
const visibleRowCount = Math.ceil(this.renderedHeight / this.rowHeight) + (extraRowCount * 2);
|
const visibleRowCount = Math.ceil(this.renderedHeight / this.rowHeight) + (extraRowCount * 2);
|
||||||
// start position of visible rows, offsetted by scrollTop
|
// start position of visible rows, offsetted by scrollTop
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue