Removable list items should be swiped up/down to be removed from an horizontal listview

Bug #1187476 reported by Olivier Tilloy
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Invalid
Medium
Unassigned

Bug Description

The 'removable' property on Empty list items (http://developer.ubuntu.com/api/ubuntu-12.10/qml/mobile/qml-ubuntu-components-listitems0-empty.html#removable-prop) currently works only for vertical list views.

In an horizontal list view, the gesture to remove an item conflicts with the gesture to flick the list. Instead, the swipe gesture to remove an item in an horizontal listview should be upwards/downwards.

I’m attaching a simple QML example that illustrates the problem.

Revision history for this message
Olivier Tilloy (osomon) wrote :
Revision history for this message
Tim Peeters (tpeeters) wrote :

indeed, in a horizontal listview you need to swipe horizontally to remove a removable list item.

What is the use case for having to swipe vertically?

Revision history for this message
Olivier Tilloy (osomon) wrote :

Per discussion with design, in the browser the list of currently open tabs is an horizontal list, and closing a tab should be achieved by swiping its delegate up/down.

Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
status: New → Confirmed
Revision history for this message
Ryan Gray (hrasdt) wrote :

Hi all,

I've been using Ubuntu Touch on my only phone for a couple weeks, and the browser tab bug was really irritating me (the ability to close tabs is required behaviour, IMO). I've fixed the bug here, although it may require extra stuff in ThinDivider.qml for parity between horizontal and vertical lists.

I wasn't entirely sure of how implicitHeight was used, so removal animation may need to be corrected. Otherwise, the code is much the same as for the more common use-case.

test.qml now works as expected, although I haven't yet tested it with the browser code. Also, I'm an absolute beginner at QML and Ubuntu stuff in general, so please correct any mistakes/poor style I've made.

Changed in ubuntu-ui-toolkit:
importance: Undecided → High
Revision history for this message
Olivier Tilloy (osomon) wrote :

The UX design for the browser app has been updated, closing tabs is no longer achieved by swiping them. Instead, a long press on any open tab toggles the 'close' mode, which allows closing any open tab by tapping it (exactly like running applications in the apps lens).
I guess the importance of this bug can be lowered, unless there are other valid use cases.

Changed in ubuntu-ui-toolkit:
importance: High → Medium
Revision history for this message
Zsombor Egri (zsombi) wrote :

The design also got changed so removing of a list item happens with left-to-right swipe opening the delete action.

Changed in ubuntu-ui-toolkit:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.