mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
readd scrollcomp
This commit is contained in:
parent
06d7164ae9
commit
344c695b52
@ -439,7 +439,15 @@ export class AssetBucket {
|
||||
}
|
||||
}
|
||||
this.#bucketHeight = height;
|
||||
store.updateIntersections();
|
||||
if (store.topIntersectingBucket) {
|
||||
const currentIndex = store.buckets.indexOf(store.topIntersectingBucket);
|
||||
// if the bucket is 'before' the last intersecting bucket in the sliding window
|
||||
// then adjust the scroll position by the delta, to compensate for the bucket
|
||||
// size adjustment
|
||||
if (currentIndex > 0 && index <= currentIndex) {
|
||||
store.compensateScrollCallback?.(bucketHeightDelta);
|
||||
}
|
||||
}
|
||||
}
|
||||
get bucketHeight() {
|
||||
return this.#bucketHeight;
|
||||
|
Loading…
x
Reference in New Issue
Block a user