diff --git a/src/lib/features/room/MediaViewer.svelte b/src/lib/features/room/MediaViewer.svelte index 9e688ae3..a5d9a56b 100644 --- a/src/lib/features/room/MediaViewer.svelte +++ b/src/lib/features/room/MediaViewer.svelte @@ -394,7 +394,9 @@ const settled = { x: swipeX, y: swipeY }; endSwipe(); if (axis === 'vertical') { - if (Math.abs(settled.y) > SWIPE_THRESHOLD || Math.abs(velocityY) > VELOCITY_THRESHOLD) { + const travelled = Math.abs(settled.y); + const flicked = Math.abs(velocityY) > VELOCITY_THRESHOLD && travelled > SWIPE_THRESHOLD / 2; + if (travelled > SWIPE_THRESHOLD || flicked) { onClose(); return true; } diff --git a/src/lib/ui/primitives/EmoteBoard.svelte b/src/lib/ui/primitives/EmoteBoard.svelte index 767cc20b..ec1a6c0c 100644 --- a/src/lib/ui/primitives/EmoteBoard.svelte +++ b/src/lib/ui/primitives/EmoteBoard.svelte @@ -82,7 +82,7 @@ }); let gifTab = $derived(tab === 'gif'); - let cellSize = $derived(tab === 'sticker' ? 72 : 32); + let cellSize = $derived(tab === 'sticker' ? 72 : tab === 'emoticon' ? 48 : 32); let boardStyle = $derived.by(() => { const size = resizable ? readBoardSize() : null; @@ -365,7 +365,7 @@ {/if} -