From 9db9671a9d5a1d63a32c24afe87a9d5d94ef1b66 Mon Sep 17 00:00:00 2001
From: memdmp <memdmp@estrogen.zone>
Date: Thu, 31 Jul 2025 23:52:46 +0200
Subject: feat: further enhancements and an api breaking change

---
 src/lib/Player/FrameSlider.svelte | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'src/lib/Player/FrameSlider.svelte')

diff --git a/src/lib/Player/FrameSlider.svelte b/src/lib/Player/FrameSlider.svelte
index a632aa9..8018a7f 100644
--- a/src/lib/Player/FrameSlider.svelte
+++ b/src/lib/Player/FrameSlider.svelte
@@ -16,7 +16,13 @@
 <div class="w-full flex items-center justify-center pt-2">
 	<div class="p-2 pr-1">
 		<button
-			onclick={() => {
+			onclick={(e) => {
+				e.stopPropagation();
+				playing = !playing;
+			}}
+			onkeydown={(e) => {
+				e.stopPropagation();
+				e.preventDefault();
 				playing = !playing;
 			}}
 			aria-label={playing ? 'pause' : 'play'}
-- 
cgit v1.2.3

