[vlc-devel] [PATCH 02/38] qml: bind sliderbar tooltip location

Fatih Uzunoglu fuzun54 at outlook.com
Thu Aug 20 19:55:11 CEST 2020


---
 modules/gui/qt/player/qml/SliderBar.qml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/gui/qt/player/qml/SliderBar.qml b/modules/gui/qt/player/qml/SliderBar.qml
index d4e5d11b0b..a00a767b11 100644
--- a/modules/gui/qt/player/qml/SliderBar.qml
+++ b/modules/gui/qt/player/qml/SliderBar.qml
@@ -41,7 +41,7 @@ Slider {
 
     Item {
         id: timeTooltip
-        property real location: 0
+        property real location: sliderRectMouseArea.mouseX
         property real position: location/control.width
 
         y: VLCStyle.dp(-35)
@@ -120,7 +120,6 @@ Slider {
                     control.value = event.x / control.width
                     player.position = control.value
                 }
-                timeTooltip.location = event.x
             }
             onEntered: {
                 if(player.hasChapters)
-- 
2.25.1



More information about the vlc-devel mailing list