From c5fdd46497491dc83072bbafb926fe95472f0676 Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Tue, 6 Jul 2021 11:49:37 +0800 Subject: [PATCH] Fix mouse time tooltip when moved to far right of progress bar --- src/js/control-bar/progress-control/progress-control.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/control-bar/progress-control/progress-control.js b/src/js/control-bar/progress-control/progress-control.js index 2d4e6926d5..67f200b9dc 100644 --- a/src/js/control-bar/progress-control/progress-control.js +++ b/src/js/control-bar/progress-control/progress-control.js @@ -72,7 +72,7 @@ class ProgressControl extends Component { } const seekBarEl = seekBar.el(); - const seekBarRect = Dom.findPosition(seekBarEl); + const seekBarRect = Dom.getBoundingClientRect(seekBarEl); let seekBarPoint = Dom.getPointerPosition(seekBarEl, event).x; // The default skin has a gap on either side of the `SeekBar`. This means