Skip to content

Commit

Permalink
Revert to fix positioning issue
Browse files Browse the repository at this point in the history
  • Loading branch information
codebicycle committed Feb 6, 2021
1 parent 2b2bcd5 commit b1b3b2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit b1b3b2b

Please sign in to comment.