Skip to content

Commit 7f0c253

Browse files
committed
fix: time tooltip out of bounds on the right
This revives videojs#7308 The analysis by @PikachEXE videojs#7248 (comment) still stands. However, the alignment issues pointed out in videojs#7308 (comment) cannot be reproduced with the current Video.js v8.x and v7.x versions after the patch is applied.
1 parent cd2dac4 commit 7f0c253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/js/control-bar/progress-control/progress-control.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class ProgressControl extends Component {
7272
}
7373

7474
const seekBarEl = seekBar.el();
75-
const seekBarRect = Dom.findPosition(seekBarEl);
75+
const seekBarRect = Dom.getBoundingClientRect(seekBarEl);
7676
let seekBarPoint = Dom.getPointerPosition(seekBarEl, event).x;
7777

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

0 commit comments

Comments
 (0)