From 2a8605dd575a4c47b18cd4e76424e1445e43192e Mon Sep 17 00:00:00 2001 From: drillprop Date: Tue, 20 Jul 2021 18:10:22 +0200 Subject: [PATCH] fix issue with out of bound tooltip on the right --- patches/video.js+7.13.3.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patches/video.js+7.13.3.patch diff --git a/patches/video.js+7.13.3.patch b/patches/video.js+7.13.3.patch new file mode 100644 index 0000000000..44664f0edb --- /dev/null +++ b/patches/video.js+7.13.3.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/video.js/dist/video.es.js b/node_modules/video.js/dist/video.es.js +index a07aa77..3f7bc30 100644 +--- a/node_modules/video.js/dist/video.es.js ++++ b/node_modules/video.js/dist/video.es.js +@@ -13959,7 +13959,7 @@ var ProgressControl = /*#__PURE__*/function (_Component) { + } + + var seekBarEl = seekBar.el(); +- var seekBarRect = findPosition(seekBarEl); ++ var seekBarRect = getBoundingClientRect(seekBarEl); + var seekBarPoint = getPointerPosition(seekBarEl, event).x; // The default skin has a gap on either side of the `SeekBar`. This means + // that it's possible to trigger this behavior outside the boundaries of + // the `SeekBar`. This ensures we stay within it at all times.