@readium/navigator 2.5.7 → 2.5.8
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.js +12 -10
- package/dist/index.umd.cjs +13 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3371,16 +3371,18 @@ class hn {
|
|
|
3371
3371
|
createUnifiedHandler(t, e, i, n) {
|
|
3372
3372
|
const s = this.createKeyboardHandlers(t, e, i, n);
|
|
3373
3373
|
return (o) => {
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3374
|
+
if (o.isTrusted) {
|
|
3375
|
+
for (const a of s)
|
|
3376
|
+
if (this.match(o, [a])) {
|
|
3377
|
+
const l = a.suppressOnInteractiveElement;
|
|
3378
|
+
if (l) {
|
|
3379
|
+
const h = (n?.document ?? document).activeElement;
|
|
3380
|
+
if (Array.isArray(l) ? l.some((c) => h?.matches(c)) : on(h)) return;
|
|
3381
|
+
}
|
|
3382
|
+
o.preventDefault(), o.stopPropagation(), a.handler(o);
|
|
3383
|
+
return;
|
|
3380
3384
|
}
|
|
3381
|
-
|
|
3382
|
-
return;
|
|
3383
|
-
}
|
|
3385
|
+
}
|
|
3384
3386
|
};
|
|
3385
3387
|
}
|
|
3386
3388
|
}
|
|
@@ -3662,7 +3664,7 @@ const At = class At extends Et {
|
|
|
3662
3664
|
), Reflect.defineProperty(t.navigator, "epubReadingSystem", {
|
|
3663
3665
|
value: {
|
|
3664
3666
|
name: "readium-ts-toolkit",
|
|
3665
|
-
version: "2.5.
|
|
3667
|
+
version: "2.5.8",
|
|
3666
3668
|
hasFeature: (n, s = "") => {
|
|
3667
3669
|
switch (n) {
|
|
3668
3670
|
case "dom-manipulation":
|