From a7c747be1e9c9b9e1f8236cf875a2ba3a8e86245 Mon Sep 17 00:00:00 2001 From: WardPearce Date: Tue, 2 Jul 2024 19:03:33 +1200 Subject: [PATCH] Fixed bind sticking on mobile --- materialious/src/lib/Thumbnail.svelte | 18 +++++++++++------- update_versions.py | 2 +- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/materialious/src/lib/Thumbnail.svelte b/materialious/src/lib/Thumbnail.svelte index d2f3fbfd..58ba6301 100644 --- a/materialious/src/lib/Thumbnail.svelte +++ b/materialious/src/lib/Thumbnail.svelte @@ -87,8 +87,8 @@ return; } - // Check if sideways should be enabled or disabled. - disableSideways(); + // Check if sideways should be enabled or disabled. + disableSideways(); addEventListener('resize', disableSideways); @@ -218,8 +218,10 @@ } catch {} } } catch { - showVideoPreview = true; + showVideoPreview = false; } + + imgHeight = document.getElementById('thumbnail-container')?.clientHeight as number; } function hideVideo() { @@ -238,7 +240,7 @@ on:mouseover={previewVideo} on:mouseleave={() => (showVideoPreview = false)} on:focus={() => {}} - bind:clientHeight={imgHeight} + id="thumbnail-container" role="region" > diff --git a/update_versions.py b/update_versions.py index 9634112a..f247f5a9 100644 --- a/update_versions.py +++ b/update_versions.py @@ -5,7 +5,7 @@ import json import os import re -LATEST_VERSION = "1.1.3" +LATEST_VERSION = "1.1.4" WORKING_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "materialious") ROOT_PACKAGE = os.path.join(WORKING_DIR, "package.json")