Skip to content

Commit

Permalink
Work better with old ipads
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasloven committed Sep 6, 2022
1 parent e0be25c commit 76ff3d7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
1 change: 0 additions & 1 deletion js/plugin/event-target-polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ if (
typeof root.EventTarget === "undefined" ||
!isConstructor(root.EventTarget)
) {
console.log("Polyfill EventTarget");
root.EventTarget = (function () {
function EventTarget() {
this.__listeners = new Map();
Expand Down
15 changes: 11 additions & 4 deletions js/plugin/require-interact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ export const RequireInteractMixin = (SuperClass) => {
video.pause();
})
.catch((e) => {
if (e.name === "AbortError") {
this._interactionResolve();
}
// if (e.name === "AbortError") {
// this._interactionResolve();
// }
});
video.pause();
}
Expand All @@ -74,8 +74,15 @@ export const RequireInteractMixin = (SuperClass) => {
},
{ once: true }
);
window.addEventListener(
"touchstart",
() => {
this._interactionResolve();
},
{ once: true }
);

// if (this.fully) this._interactionResolve();
if (this.fully) this._interactionResolve();

await this.firstInteraction;
interactSymbol.remove();
Expand Down

0 comments on commit 76ff3d7

Please sign in to comment.