From e7862fc0f06af6572fbdce10af1a3b5a3e3893c4 Mon Sep 17 00:00:00 2001 From: martin <74269598+martabal@users.noreply.github.com> Date: Wed, 2 Oct 2024 17:04:21 +0200 Subject: [PATCH] fix: mouse hover over stack (#13119) fix: mouse hover on stack --- web/src/lib/components/asset-viewer/asset-viewer.svelte | 1 + web/src/lib/components/assets/thumbnail/thumbnail.svelte | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/lib/components/asset-viewer/asset-viewer.svelte b/web/src/lib/components/asset-viewer/asset-viewer.svelte index 451915d13a..7686494aa7 100644 --- a/web/src/lib/components/asset-viewer/asset-viewer.svelte +++ b/web/src/lib/components/asset-viewer/asset-viewer.svelte @@ -590,6 +590,7 @@ preloadAssets = index + 1 >= stackedAssets.length ? [] : [stackedAssets[index + 1]]; }} onMouseEvent={({ isMouseOver }) => handleStackedAssetMouseEvent(isMouseOver, stackedAsset)} + disableMouseOver readonly thumbnailSize={stackedAsset.id == asset.id ? 65 : 60} showStackedIcon={false} diff --git a/web/src/lib/components/assets/thumbnail/thumbnail.svelte b/web/src/lib/components/assets/thumbnail/thumbnail.svelte index af22887185..ac67605fc6 100644 --- a/web/src/lib/components/assets/thumbnail/thumbnail.svelte +++ b/web/src/lib/components/assets/thumbnail/thumbnail.svelte @@ -44,6 +44,7 @@ export let readonly = false; export let showArchiveIcon = false; export let showStackedIcon = true; + export let disableMouseOver = false; export let intersectionConfig: { root?: HTMLElement; bottom?: string; @@ -207,7 +208,7 @@ on:click={handleClick} role="link" > - {#if mouseOver} + {#if mouseOver && !disableMouseOver}