{#if bucketInfo && viewportHeight && $assetGridState.timelineHeight > viewportHeight} handleScrollbarClick(e.detail)} on:onscrollbardrag={(e) => handleScrollbarDrag(e.detail)} /> {/if} {#if assetGridElement} {#if showMemoryLane} {/if} {#each $assetGridState.buckets as bucket, bucketIndex (bucketIndex)} { // If bucket is hidden and in loading state, cancel the request if ($loadingBucketState[bucket.bucketDate]) { await assetStore.cancelBucketRequest(bucket.cancelToken, bucket.bucketDate); } }} let:intersecting top={750} bottom={750} root={assetGridElement} > {#if intersecting} {/if} {/each} {/if} {#if $isViewingAssetStoreState} { assetInteractionStore.setIsViewingAsset(false); }} on:archived={handleArchiveSuccess} /> {/if}