Compare commits

...

1 commit

Author SHA1 Message Date
videogame hacker
4dfe6a544d Experimental: Prevent default action on outgoing events when debouncing 2021-12-04 12:28:45 +00:00

View file

@ -86,6 +86,7 @@ const setupOutgoingEvents = (video, socket) => {
video.addEventListener("pause", async (event) => {
if (outgoingDebounce || !video.controls) {
event.preventDefault();
return;
}
@ -107,6 +108,7 @@ const setupOutgoingEvents = (video, socket) => {
video.addEventListener("play", (event) => {
if (outgoingDebounce || !video.controls) {
event.preventDefault();
return;
}
@ -130,6 +132,7 @@ const setupOutgoingEvents = (video, socket) => {
}
if (outgoingDebounce || !video.controls) {
event.preventDefault();
return;
}