added on click listeners on comments

This commit is contained in:
2021-01-28 18:18:44 +01:00
parent c32b52e367
commit d2c5282d65
3 changed files with 18 additions and 4 deletions

View File

@@ -62,7 +62,9 @@ class Controller {
);
const seek = document.getElementById("seek");
seek.addEventListener("input", this.view.videoPlayer.skipAhead);
seek.addEventListener("input", function() {
this.view.videoPlayer.skipAhead(seek.value);
}.bind(this));
document.addEventListener("keyup", function (e) {
if (e.keyCode == 32) {