A music player that connects to your cloud/distributed storage.
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: improve perf blur list view

+10 -4
+10 -4
src/facets/themes/blur/browser/element.js
··· 266 266 /** @type {(() => void) | undefined} */ 267 267 #virtualizerCleanup; 268 268 269 + #virtualizerCount = 0; 270 + 269 271 // LIFECYCLE 270 272 271 273 /** ··· 687 689 if (!this.root().querySelector(".scroll-panel")) return; 688 690 689 691 this.#virtualizerCleanup?.(); 692 + this.#virtualizerCount = 0; 690 693 691 694 this.#virtualizer = new Virtualizer({ 692 695 count: 0, ··· 1148 1151 // The virtualizer is set up in connectedCallback after first render; 1149 1152 // until then virtualItems is empty and totalSize is 0. 1150 1153 if (this.#virtualizer) { 1151 - this.#virtualizer.setOptions({ 1152 - ...this.#virtualizer.options, 1153 - count, 1154 - }); 1154 + if (count !== this.#virtualizerCount) { 1155 + this.#virtualizerCount = count; 1156 + this.#virtualizer.setOptions({ 1157 + ...this.#virtualizer.options, 1158 + count, 1159 + }); 1160 + } 1155 1161 this.#virtualizer._willUpdate(); 1156 1162 } 1157 1163