From 2d64f0cbcaa5f7e8d418c4c56bd22b8aad3b35c0 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Sun, 26 Feb 2017 15:15:59 -0800 Subject: [PATCH] Increase size of target touch areas --- src/QmlControls/ToolStrip.qml | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/QmlControls/ToolStrip.qml b/src/QmlControls/ToolStrip.qml index 337b1b40f..89ae07a46 100644 --- a/src/QmlControls/ToolStrip.qml +++ b/src/QmlControls/ToolStrip.qml @@ -48,12 +48,13 @@ Rectangle { } MouseArea { - x: -_root.x - y: -_root.y - width: _root.parent.width - height: _root.parent.height - visible: dropPanel.visible - onClicked: dropPanel.hide() + x: -_root.x + y: -_root.y + width: _root.parent.width + height: _root.parent.height + visible: dropPanel.visible + onClicked: dropPanel.hide() + preventStealing: true } Column { @@ -144,11 +145,15 @@ Rectangle { } MouseArea { - anchors.left: parent.left - anchors.right: parent.right - anchors.top: parent.top - height: parent.height + (_showOptionalElements? buttonLabel.height + buttonColumn.spacing : 0) - visible: _root.buttonEnabled ? _root.buttonEnabled[index] : true + // Size of mouse area is expanded to make touch easier + anchors.leftMargin: buttonStripColumn.margins + anchors.rightMargin: buttonStripColumn.margins + anchors.left: parent.left + anchors.right: parent.right + anchors.top: parent.top + height: parent.height + (_showOptionalElements? buttonLabel.height + buttonColumn.spacing : 0) + visible: _root.buttonEnabled ? _root.buttonEnabled[index] : true + preventStealing: true onClicked: { if (modelData.dropPanelComponent === undefined) { -- 2.22.0