Commit 23c6bb1b authored by Jan Arve Saether's avatar Jan Arve Saether Committed by Jani Heikkinen
Browse files

Only make scrollbars non-interactive on mobile devices.


Before this patch, I could not adjust the scrollbars in a ScrollArea on
a Windows 8.1 desktop computer just because it had a touch screen.

The same problem was observed on Linux (with touch screen).

Task-number: QTBUG-42806
Change-Id: I6f35c40b0362820d7c1685e1b6fc8474432237eb
Reviewed-by: default avatarJ-P Nurmi <jpnurmi@theqtcompany.com>
Reviewed-by: default avatarShawn Rutledge <shawn.rutledge@digia.com>
Showing with 1 addition and 1 deletion
...@@ -102,7 +102,7 @@ Item { ...@@ -102,7 +102,7 @@ Item {
onExited: if (!pressed) __panel.activeControl = "none" onExited: if (!pressed) __panel.activeControl = "none"
onMouseXChanged: if (!pressed) __panel.activeControl = __panel.hitTest(mouseX, mouseY) onMouseXChanged: if (!pressed) __panel.activeControl = __panel.hitTest(mouseX, mouseY)
hoverEnabled: !Settings.hasTouchScreen hoverEnabled: !Settings.hasTouchScreen
enabled: !Settings.hasTouchScreen // TODO: touch on desktop? enabled: !Settings.isMobile || !Settings.hasTouchScreen // ### Not ideal, but will usually behave as expected...
preventStealing: true preventStealing: true
property var pressedX property var pressedX
property var pressedY property var pressedY
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment