aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/material/SliderHandle.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/material/SliderHandle.qml')
-rw-r--r--src/imports/controls/material/SliderHandle.qml10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/imports/controls/material/SliderHandle.qml b/src/imports/controls/material/SliderHandle.qml
index dc1a836d..6f54eaf5 100644
--- a/src/imports/controls/material/SliderHandle.qml
+++ b/src/imports/controls/material/SliderHandle.qml
@@ -55,7 +55,7 @@ Item {
height: parent.height
radius: width / 2
color: root.control.Material.accentColor
- scale: root.handlePressed || root.handleHasFocus ? 1.5 : 1
+ scale: root.handlePressed ? 1.5 : 1
Behavior on scale {
NumberAnimation {
@@ -63,4 +63,12 @@ Item {
}
}
}
+
+ Ripple {
+ width: parent.width
+ height: width
+ control: root.control
+ colored: true
+ opacity: root.handleHasFocus && !root.handlePressed ? 1 : 0
+ }
}