diff --git a/package.json b/package.json
index 1d2f0c6f..c714a2de 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "jellytau",
- "version": "0.2.6",
+ "version": "0.2.7",
"description": "",
"type": "module",
"packageManager": "bun@1.3.5",
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index e1c68c6b..67e05cac 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -1994,7 +1994,7 @@ dependencies = [
[[package]]
name = "jellytau"
-version = "0.2.6"
+version = "0.2.7"
dependencies = [
"aes-gcm",
"async-trait",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 4f588f8c..6e73a381 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "jellytau"
-version = "0.2.6"
+version = "0.2.7"
description = "A Tauri App"
authors = ["you"]
edition = "2021"
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index eb2bfc48..f173da03 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "jellytau",
- "version": "0.2.6",
+ "version": "0.2.7",
"identifier": "com.dtourolle.jellytau",
"build": {
"beforeDevCommand": "bun run dev",
diff --git a/src/lib/components/player/VideoPlayer.svelte b/src/lib/components/player/VideoPlayer.svelte
index 7e95be49..53e90346 100644
--- a/src/lib/components/player/VideoPlayer.svelte
+++ b/src/lib/components/player/VideoPlayer.svelte
@@ -1448,7 +1448,11 @@
* `isControlSurfaceTouch` needs, so the rule itself stays DOM-free and testable.
*/
function ancestorChain(target: EventTarget | null) {
- const chain: Array<{ tag: string; isPlayerControls?: boolean }> = [];
+ const chain: Array<{
+ tag: string;
+ isPlayerControls?: boolean;
+ isPlayerSurface?: boolean;
+ }> = [];
let node = target as HTMLElement | null;
// Bounded walk: controls live a few levels below the player root, and
// stopping at
keeps this cheap and avoids depending on a bound ref.
@@ -1456,6 +1460,7 @@
chain.push({
tag: node.tagName ?? "",
isPlayerControls: node.dataset?.playerControls !== undefined,
+ isPlayerSurface: node.dataset?.playerSurface !== undefined,
});
node = node.parentElement;
}
@@ -1807,10 +1812,15 @@
{:else if !isPlaying}
-
+