Much better camera support for FKB

This commit is contained in:
2021-07-11 20:58:19 +00:00
parent 87e939c6cb
commit 2ba8977118
7 changed files with 33 additions and 8 deletions

View File

@@ -28,9 +28,15 @@ export const BrowserModCameraMixin = (C) =>
this._camera_framerate = 2;
window.addEventListener("click", () => this._video.play(), {
once: true,
});
window.addEventListener(
"click",
() => {
if (this._video.ended || this._video.paused) this._video.play();
},
{
once: true,
}
);
}
update_camera() {