mirror of
https://github.com/immich-app/immich.git
synced 2025-12-10 23:25:29 -05:00
chore: cleanup web (#23866)
This commit is contained in:
parent
62580455af
commit
e0535e20e6
@ -205,12 +205,10 @@
|
|||||||
}
|
}
|
||||||
const scrollTarget = $gridScrollTarget?.at;
|
const scrollTarget = $gridScrollTarget?.at;
|
||||||
let scrolled = false;
|
let scrolled = false;
|
||||||
console.log(scrollTarget, scrolled);
|
|
||||||
if (scrollTarget) {
|
if (scrollTarget) {
|
||||||
scrolled = await scrollAndLoadAsset(scrollTarget);
|
scrolled = await scrollAndLoadAsset(scrollTarget);
|
||||||
}
|
}
|
||||||
if (!scrolled) {
|
if (!scrolled) {
|
||||||
console.log('scrolling?');
|
|
||||||
// if the asset is not found, scroll to the top
|
// if the asset is not found, scroll to the top
|
||||||
timelineManager.scrollTo(0);
|
timelineManager.scrollTo(0);
|
||||||
}
|
}
|
||||||
@ -226,7 +224,6 @@
|
|||||||
// and a new route is being navigated to. It will never be called on direct
|
// and a new route is being navigated to. It will never be called on direct
|
||||||
// navigations by the browser.
|
// navigations by the browser.
|
||||||
beforeNavigate(({ from, to }) => {
|
beforeNavigate(({ from, to }) => {
|
||||||
console.log('before navigate');
|
|
||||||
timelineManager.suspendTransitions = true;
|
timelineManager.suspendTransitions = true;
|
||||||
const isNavigatingToAssetViewer = isAssetViewerRoute(to);
|
const isNavigatingToAssetViewer = isAssetViewerRoute(to);
|
||||||
const isNavigatingFromAssetViewer = isAssetViewerRoute(from);
|
const isNavigatingFromAssetViewer = isAssetViewerRoute(from);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user