Fix: Prevent events from passing through ValueSlider to the map

This commit is contained in:
Sergii Lisovenko
2025-02-16 22:00:29 +01:00
committed by Don Gagne
parent 7c1f75c1fb
commit 0d577e9ea6
+8
View File
@@ -128,6 +128,14 @@ Control {
colorGroupEnabled: control.enabled
}
// This TapHandler ensures that the slider captures touch and click events,
// preventing them from passing through to the underlying map.
TapHandler {
acceptedButtons: Qt.AllButtons
onTapped: control.forceActiveFocus()
grabPermissions: PointerHandler.CanTakeOverFromAnything
}
background: Item {
implicitHeight: _majorTickSize + tickValueMargin + ScreenTools.defaultFontPixelHeight + labelOffset
clip: true