From e344503834d5ba87ea20ed83e212fd3969d8b4f2 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 24 Aug 2022 22:18:28 -0700 Subject: [PATCH] Fixed navigating with keyboard skip assets (#531) * Cleaned up event listner --- .../asset-viewer/asset-viewer.svelte | 324 +++++++++--------- 1 file changed, 162 insertions(+), 162 deletions(-) diff --git a/web/src/lib/components/asset-viewer/asset-viewer.svelte b/web/src/lib/components/asset-viewer/asset-viewer.svelte index 79b5f0d453..5347389e1f 100644 --- a/web/src/lib/components/asset-viewer/asset-viewer.svelte +++ b/web/src/lib/components/asset-viewer/asset-viewer.svelte @@ -1,207 +1,207 @@
-
- -
+
+ +
-
{ + on:mouseenter={() => { halfLeftHover = true; halfRightHover = false; }} - on:mouseleave={() => { + on:mouseleave={() => { halfLeftHover = false; }} - on:click={navigateAssetBackward} - > - -
+ on:click={navigateAssetBackward} + > + + -
- {#key asset.id} - {#if asset.type === AssetTypeEnum.Image} - - {:else} - - {/if} - {/key} -
+
+ {#key asset.id} + {#if asset.type === AssetTypeEnum.Image} + + {:else} + + {/if} + {/key} +
-
{ + on:click={navigateAssetForward} + on:mouseenter={() => { halfLeftHover = false; halfRightHover = true; }} - on:mouseleave={() => { + on:mouseleave={() => { halfRightHover = false; }} - > - -
+ > + + - {#if isShowDetail} -
- (isShowDetail = false)}/> -
- {/if} + {#if isShowDetail} +
+ (isShowDetail = false)} /> +
+ {/if}