From 0aca608bda8692c9ac3a019dd2eb76e4902f21ec Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 5 Aug 2015 14:53:49 +0200 Subject: [PATCH] on touchscreen and mobile scrollbars are transient Change-Id: I81b2986b4ca0486b59e8bd400cd8e2603a54e040 --- src/declarativeimports/plasmastyle/ScrollViewStyle.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/declarativeimports/plasmastyle/ScrollViewStyle.qml b/src/declarativeimports/plasmastyle/ScrollViewStyle.qml index 12925e6bf..7dd55cbfb 100644 --- a/src/declarativeimports/plasmastyle/ScrollViewStyle.qml +++ b/src/declarativeimports/plasmastyle/ScrollViewStyle.qml @@ -20,6 +20,7 @@ import QtQuick 2.0 import QtQuick.Controls.Styles 1.1 as QtQuickControlStyle +import QtQuick.Controls.Private 1.0 import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.components 2.0 as PlasmaComponents @@ -29,7 +30,7 @@ QtQuickControlStyle.ScrollViewStyle { property real widthHint: Math.round( (scrollbarSvg.hasElement("hint-scrollbar-size") ? scrollbarSvg.elementSize("hint-scrollbar-size").width : scrollbarSvg.elementSize("arrow-up").width) * units.devicePixelRatio) - transientScrollBars: false + transientScrollBars: Settings.hasTouchScreen && Settings.isMobile function syncVelocity() { if (!control.flickableItem) {