Fix: Prevent events from passing through ValueSlider to the map
This commit is contained in:
committed by
Don Gagne
parent
7c1f75c1fb
commit
0d577e9ea6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user