Skip to content

Commit

Permalink
Fix mouse time tooltip when moved to far right of progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
PikachuEXE committed Jul 6, 2021
1 parent a8a5e02 commit c5fdd46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/control-bar/progress-control/progress-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class ProgressControl extends Component {
}

const seekBarEl = seekBar.el();
const seekBarRect = Dom.findPosition(seekBarEl);
const seekBarRect = Dom.getBoundingClientRect(seekBarEl);

Check warning on line 75 in src/js/control-bar/progress-control/progress-control.js

View check run for this annotation

Codecov / codecov/patch

src/js/control-bar/progress-control/progress-control.js#L75

Added line #L75 was not covered by tests
let seekBarPoint = Dom.getPointerPosition(seekBarEl, event).x;

// The default skin has a gap on either side of the `SeekBar`. This means
Expand Down

0 comments on commit c5fdd46

Please sign in to comment.