Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qt6/src/qml/Slider.qml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ T.Slider {
startX: control.horizontal ? (control.alignToTicks ? __handle.width / 2 : 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 > 0) ? control.handle.x + control.handle.width : control.handle.x) : sliderGroove.width / 2
Comment thread
52cyb marked this conversation as resolved.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

control.handleType < 0 这个不会成立吧,它是个枚举,

y: control.horizontal ? sliderGroove.height / 2 : control.handle.y + control.handle.height / 2
}
}
Expand Down
Loading