Bar/Widgets: hide volume tooltips while adjusting

This commit is contained in:
Olaf Luijks
2025-11-14 10:56:39 +01:00
parent 68e83f4d63
commit 545e72c256
2 changed files with 12 additions and 0 deletions
+7
View File
@@ -50,6 +50,9 @@ Item {
// Ignore the first volume change
firstInputVolumeReceived = true
} else {
// If a tooltip is visible while we show the pill
// hide it so it doesn't overlap the volume slider.
TooltipService.hide()
pill.show()
externalHideTimer.restart()
}
@@ -65,6 +68,7 @@ Item {
// Ignore the first mute change
firstInputVolumeReceived = true
} else {
TooltipService.hide()
pill.show()
externalHideTimer.restart()
}
@@ -96,6 +100,9 @@ Item {
})
onWheel: function (delta) {
// As soon as we start scrolling to adjust volume, hide the tooltip
TooltipService.hide()
wheelAccumulator += delta
if (wheelAccumulator >= 120) {
wheelAccumulator = 0
+5
View File
@@ -50,6 +50,8 @@ Item {
// Ignore the first volume change
firstVolumeReceived = true
} else {
// Hide any tooltip while the pill is visible / being updated
TooltipService.hide()
pill.show()
externalHideTimer.restart()
}
@@ -81,6 +83,9 @@ Item {
})
onWheel: function (delta) {
// Hide tooltip as soon as the user starts scrolling to adjust volume
TooltipService.hide()
wheelAccumulator += delta
if (wheelAccumulator >= 120) {
wheelAccumulator = 0