Much better camera support for FKB
This commit is contained in:
12
js/camera.js
12
js/camera.js
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user