Revert to fix positioning issue

This commit is contained in:
codebicycle
2021-02-06 21:50:47 +02:00
parent 2b2bcd5251
commit b1b3b2b36a
2 changed files with 3 additions and 3 deletions

View File

@@ -274,8 +274,8 @@ function defineVideoController() {
const document = this.video.ownerDocument;
const speed = this.video.playbackRate.toFixed(2);
const rect = this.video.getBoundingClientRect();
const top = Math.max(rect.top, 0) + "px";
const left = Math.max(rect.left, 0) + "px";
var top = Math.max(this.video.offsetTop, 0) + "px",
left = Math.max(this.video.offsetLeft, 0) + "px";
log("Speed variable set to: " + speed, 5);