diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-06-12 23:42:26 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-06-13 11:58:34 +0000 |
commit | 556bfd141b02e8ce2a863112f90609409460797f (patch) | |
tree | 5a05e67fff00f583195f8129fd7627a29e7288cf /src/imports | |
parent | 16bf9ab0d10de1aad51dde2ab9be7eb893b0b123 (diff) |
Material: increase ScrollBar's touch area
8px is hard to hit on touch. A total padding of 16px, so a total size
of 20px is still nowhere near the Material design minimum touch target
size 48px, but that feels so massive area stealing touches on the
screen edge that let's try something a little bit smaller first...
Task-number: QTBUG-51527
Change-Id: I2d095d8aa851e99a406286640d2b835cac52c47f
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/controls/material/ScrollBar.qml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imports/controls/material/ScrollBar.qml b/src/imports/controls/material/ScrollBar.qml index b99e12de..84f2d33a 100644 --- a/src/imports/controls/material/ScrollBar.qml +++ b/src/imports/controls/material/ScrollBar.qml @@ -47,6 +47,9 @@ T.ScrollBar { contentItem.implicitHeight + topPadding + bottomPadding) padding: 2 + topPadding: padding + (control.orientation === Qt.Horizontal ? 12 : 0) + leftPadding: padding + (control.orientation === Qt.Vertical && !control.mirrored ? 12 : 0) + rightPadding: padding + (control.orientation === Qt.Vertical && control.mirrored ? 12 : 0) contentItem: Rectangle { id: handle |