1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-02 06:32:07 +02:00

Fix mouse time tooltip when moved to far right of progress bar

This commit is contained in:
PikachuEXE 2021-07-06 11:49:37 +08:00
parent a8a5e02cba
commit c5fdd46497

View File

@ -72,7 +72,7 @@ class ProgressControl extends Component {
} }
const seekBarEl = seekBar.el(); const seekBarEl = seekBar.el();
const seekBarRect = Dom.findPosition(seekBarEl); const seekBarRect = Dom.getBoundingClientRect(seekBarEl);
let seekBarPoint = Dom.getPointerPosition(seekBarEl, event).x; let seekBarPoint = Dom.getPointerPosition(seekBarEl, event).x;
// The default skin has a gap on either side of the `SeekBar`. This means // The default skin has a gap on either side of the `SeekBar`. This means