@scarlett-player/gestures 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -479,7 +479,7 @@ function createGesturesPlugin(config = {}) {
|
|
|
479
479
|
};
|
|
480
480
|
const syncSurface = () => {
|
|
481
481
|
if (!active || !api) return;
|
|
482
|
-
const wantsSurface = api.getState("mediaType")
|
|
482
|
+
const wantsSurface = api.getState("mediaType") === "video";
|
|
483
483
|
if (wantsSurface && !overlay) {
|
|
484
484
|
overlay = new GestureOverlay(api.container, { onPointer, feedback });
|
|
485
485
|
overlay.setZoneWidths(leftZone, rightZone);
|
package/dist/index.js
CHANGED
|
@@ -448,7 +448,7 @@ function createGesturesPlugin(config = {}) {
|
|
|
448
448
|
};
|
|
449
449
|
const syncSurface = () => {
|
|
450
450
|
if (!active || !api) return;
|
|
451
|
-
const wantsSurface = api.getState("mediaType")
|
|
451
|
+
const wantsSurface = api.getState("mediaType") === "video";
|
|
452
452
|
if (wantsSurface && !overlay) {
|
|
453
453
|
overlay = new GestureOverlay(api.container, { onPointer, feedback });
|
|
454
454
|
overlay.setZoneWidths(leftZone, rightZone);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scarlett-player/gestures",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "Gestures Plugin for Scarlett Player - double-tap seek zones and tap to toggle controls",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsup": "^8.5.1",
|
|
31
31
|
"typescript": "^5.3.0",
|
|
32
32
|
"vitest": "^1.6.0",
|
|
33
|
-
"@scarlett-player/core": "1.
|
|
33
|
+
"@scarlett-player/core": "1.13.0"
|
|
34
34
|
},
|
|
35
35
|
"keywords": [
|
|
36
36
|
"video",
|