Bug 393749

Summary: Applets using ExpandableListItem component are hard to use with a touch screen
Product: [Frameworks and Libraries] libplasma Reporter: Aleix Pol <aleixpol>
Component: componentsAssignee: Nate Graham <nate>
Status: RESOLVED FIXED    
Severity: normal CC: kde, nate, plasma-bugs-null
Priority: NOR Keywords: usability
Version First Reported In: 5.69.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.70
Sentry Crash Report:

Description Aleix Pol 2018-05-01 23:12:57 UTC
To press the "Connect" button it expects a hover event we can't grant by touching.
Comment 1 David Edmundson 2018-05-01 23:31:58 UTC
What connect button?
Comment 2 Aleix Pol 2018-05-01 23:48:27 UTC
Oops wrong component.
Comment 3 Nate Graham 2020-04-13 19:44:50 UTC
Confirmed. I'll fix this for everything all at once in the ExpandableListItem component.
Comment 4 Nate Graham 2020-04-13 21:02:57 UTC
Working on a patch...
Comment 5 Nate Graham 2020-04-13 23:12:55 UTC
Patch: https://phabricator.kde.org/D28808
Comment 6 Nate Graham 2020-04-18 05:45:40 UTC
Git commit 52c0a136f9fff59db30210a788e9f904ea594fa4 by Nate Graham.
Committed on 18/04/2020 at 05:45.
Pushed by ngraham into branch 'master'.

[ExpandableListItem] make it touch-friendly

Summary:
Right now ExpandableListItem is not very touch-friendly due to use of a mousearea
hover effect for choosing the selected item. This patch fixes that by using a `TapHandler`
to handle left-clicks and  touch input. We still need a MouseArea inside it to handle
non-touch hover and right-click behaviors.
FIXED-IN: 5.70

Test Plan: Click behavior is identical to how it was before, but now touch works too: {F8234452}

Reviewers: #plasma, apol, #vdg, niccolove

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D28808

M  +124  -113  src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml

https://commits.kde.org/plasma-framework/52c0a136f9fff59db30210a788e9f904ea594fa4