@scarlett-player/gestures 1.11.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 +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -354,7 +354,7 @@ var GestureOverlay = class {
|
|
|
354
354
|
};
|
|
355
355
|
|
|
356
356
|
// src/version.ts
|
|
357
|
-
var PKG_VERSION = true ? "1.
|
|
357
|
+
var PKG_VERSION = true ? "1.12.0" : "0.0.0-dev";
|
|
358
358
|
|
|
359
359
|
// src/index.ts
|
|
360
360
|
function hasCoarsePointer() {
|
|
@@ -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
|
@@ -323,7 +323,7 @@ var GestureOverlay = class {
|
|
|
323
323
|
};
|
|
324
324
|
|
|
325
325
|
// src/version.ts
|
|
326
|
-
var PKG_VERSION = true ? "1.
|
|
326
|
+
var PKG_VERSION = true ? "1.12.0" : "0.0.0-dev";
|
|
327
327
|
|
|
328
328
|
// src/index.ts
|
|
329
329
|
function hasCoarsePointer() {
|
|
@@ -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",
|