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);

View File

@@ -1,7 +1,7 @@
{
"name": "Video Speed Controller",
"short_name": "videospeed",
"version": "0.6.3",
"version": "0.6.3.1",
"manifest_version": 2,
"description": "Speed up, slow down, advance and rewind HTML5 audio/video with shortcuts",
"homepage_url": "https://github.com/codebicycle/videospeed",