From 36395d26234075668225521c3654eed956016851 Mon Sep 17 00:00:00 2001 From: zhanghongyuan Date: Thu, 5 Feb 2026 10:20:39 +0800 Subject: [PATCH] fix(slider): adjust path calculation for handle alignment When handleType is less than 0, the x-coordinate calculation now includes the handle width offset to correct the visual alignment of the slider path. log: adjust path calculation for handle alignment pms: BUG-349793 --- qt6/src/qml/Slider.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt6/src/qml/Slider.qml b/qt6/src/qml/Slider.qml index a37803fc..7be9e100 100644 --- a/qt6/src/qml/Slider.qml +++ b/qt6/src/qml/Slider.qml @@ -99,7 +99,7 @@ T.Slider { startX: control.horizontal ? 0 : sliderGroove.width / 2 startY: control.horizontal ? sliderGroove.height / 2 : sliderGroove.height PathLine { - x: control.horizontal ? control.handle.x : sliderGroove.width / 2 + x: control.horizontal ? (control.handleType < 0 ? control.handle.x + control.handle.width : control.handle.x) : sliderGroove.width / 2 y: control.horizontal ? sliderGroove.height / 2 : control.handle.y + control.handle.height / 2 } }