Root causes addressed:
- track-list had no _itemSize hint for flow layout — virtualizer
defaulted to 100px, measured actual ~33px rows, then called
_correctScrollError/scrollTo on every scroll causing visible jumps
- will-change:transform on virtualizer elements caused nested GPU
layers (virtualizer positions children with transforms internally)
adding compositor overhead instead of helping
- content-visibility:auto on album cards conflicted with virtualizer's
own DOM recycling, causing redundant layout recalculation
- track-list visibilityChanged handler wrote to store synchronously
on every event (per-item during scroll) without any throttling
- IIFE closure in renderTrackRow created a new function per row per render
Fixes applied:
- Add _itemSize:{height:33} + fixed height:33px on .track-row (matches
queue-panel pattern that already worked smoothly)
- Add overflow-anchor:none on track-list virtualizer
- Remove will-change:transform from all 6 scroll containers
- Remove content-visibility:auto from album cards
- RAF-throttle visibilityChanged scroll position saves
- Replace IIFE with direct cols.map() in template
120 lines
3.2 KiB
JavaScript
Executable File
120 lines
3.2 KiB
JavaScript
Executable File
// @ts-check
|
|
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
|
// This file is automatically generated. DO NOT EDIT
|
|
|
|
export function AddLibrary(arg1) {
|
|
return window['go']['library']['Library']['AddLibrary'](arg1);
|
|
}
|
|
|
|
export function CancelAllScans() {
|
|
return window['go']['library']['Library']['CancelAllScans']();
|
|
}
|
|
|
|
export function CancelCurrentScan() {
|
|
return window['go']['library']['Library']['CancelCurrentScan']();
|
|
}
|
|
|
|
export function CancelScan() {
|
|
return window['go']['library']['Library']['CancelScan']();
|
|
}
|
|
|
|
export function FullRescan() {
|
|
return window['go']['library']['Library']['FullRescan']();
|
|
}
|
|
|
|
export function GetAlbumTracks(arg1) {
|
|
return window['go']['library']['Library']['GetAlbumTracks'](arg1);
|
|
}
|
|
|
|
export function GetAlbumsByArtist(arg1) {
|
|
return window['go']['library']['Library']['GetAlbumsByArtist'](arg1);
|
|
}
|
|
|
|
export function GetAllAlbums() {
|
|
return window['go']['library']['Library']['GetAllAlbums']();
|
|
}
|
|
|
|
export function GetAllArtists() {
|
|
return window['go']['library']['Library']['GetAllArtists']();
|
|
}
|
|
|
|
export function GetAllGenresWithCounts() {
|
|
return window['go']['library']['Library']['GetAllGenresWithCounts']();
|
|
}
|
|
|
|
export function GetAllLibrariesWithTrackCounts() {
|
|
return window['go']['library']['Library']['GetAllLibrariesWithTrackCounts']();
|
|
}
|
|
|
|
export function GetAllTracks() {
|
|
return window['go']['library']['Library']['GetAllTracks']();
|
|
}
|
|
|
|
export function GetRemovalImpact(arg1) {
|
|
return window['go']['library']['Library']['GetRemovalImpact'](arg1);
|
|
}
|
|
|
|
export function GetScanQueueLength() {
|
|
return window['go']['library']['Library']['GetScanQueueLength']();
|
|
}
|
|
|
|
export function GetTracksByGenre(arg1) {
|
|
return window['go']['library']['Library']['GetTracksByGenre'](arg1);
|
|
}
|
|
|
|
export function IsScanActive() {
|
|
return window['go']['library']['Library']['IsScanActive']();
|
|
}
|
|
|
|
export function IsScanPaused() {
|
|
return window['go']['library']['Library']['IsScanPaused']();
|
|
}
|
|
|
|
export function PauseScan() {
|
|
return window['go']['library']['Library']['PauseScan']();
|
|
}
|
|
|
|
export function QueuedLibraryNames() {
|
|
return window['go']['library']['Library']['QueuedLibraryNames']();
|
|
}
|
|
|
|
export function RemoveLibrary(arg1) {
|
|
return window['go']['library']['Library']['RemoveLibrary'](arg1);
|
|
}
|
|
|
|
export function RenameLibrary(arg1, arg2) {
|
|
return window['go']['library']['Library']['RenameLibrary'](arg1, arg2);
|
|
}
|
|
|
|
export function ResumeScan() {
|
|
return window['go']['library']['Library']['ResumeScan']();
|
|
}
|
|
|
|
export function ScanAllLibraries() {
|
|
return window['go']['library']['Library']['ScanAllLibraries']();
|
|
}
|
|
|
|
export function ScanLibrary(arg1) {
|
|
return window['go']['library']['Library']['ScanLibrary'](arg1);
|
|
}
|
|
|
|
export function SearchTracks(arg1) {
|
|
return window['go']['library']['Library']['SearchTracks'](arg1);
|
|
}
|
|
|
|
export function SetContext(arg1) {
|
|
return window['go']['library']['Library']['SetContext'](arg1);
|
|
}
|
|
|
|
export function SetRemovalHooks(arg1) {
|
|
return window['go']['library']['Library']['SetRemovalHooks'](arg1);
|
|
}
|
|
|
|
export function SetRescanHooks(arg1) {
|
|
return window['go']['library']['Library']['SetRescanHooks'](arg1);
|
|
}
|
|
|
|
export function SoftScanAllLibraries() {
|
|
return window['go']['library']['Library']['SoftScanAllLibraries']();
|
|
}
|