selecting an album while having a dropdown open no longer scrolls to the top of the grid.
This commit is contained in:
@@ -605,11 +605,18 @@ export class CoverGrid extends LitElement {
|
|||||||
) {
|
) {
|
||||||
if (this.skipOverlay) {
|
if (this.skipOverlay) {
|
||||||
// Lightweight exit: skip the
|
// Lightweight exit: skip the
|
||||||
// overlay capture and scroll
|
// expensive overlay capture but
|
||||||
// restore so the transition is
|
// still restore scroll position
|
||||||
// instant.
|
// since the DOM restructure
|
||||||
|
// (split → single virtualizer)
|
||||||
|
// resets scrollTop.
|
||||||
this.skipOverlay = false;
|
this.skipOverlay = false;
|
||||||
|
this.savedScrollTop =
|
||||||
|
this.computeAdjustedScrollTop();
|
||||||
|
this.savedAlbumViewportOffset = null;
|
||||||
this.splitMode = false;
|
this.splitMode = false;
|
||||||
|
this.needsScrollRestore = true;
|
||||||
|
this.showDropdownAfterRestore = false;
|
||||||
} else {
|
} else {
|
||||||
// Capture the raw split-mode scrollTop
|
// Capture the raw split-mode scrollTop
|
||||||
// before converting to single-mode coords.
|
// before converting to single-mode coords.
|
||||||
|
|||||||
Reference in New Issue
Block a user