Merge lp:~ahayzen/music-app/fix-1383870-scroll-close-actions into lp:music-app/remix

Proposed by Andrew Hayzen
Status: Merged
Approved by: Victor Thompson
Approved revision: 773
Merged at revision: 773
Proposed branch: lp:~ahayzen/music-app/fix-1383870-scroll-close-actions
Merge into: lp:music-app/remix
Diff against target: 15 lines (+5/-0)
1 file modified
common/ListItemWithActions.qml (+5/-0)
To merge this branch: bzr merge lp:~ahayzen/music-app/fix-1383870-scroll-close-actions
Reviewer Review Type Date Requested Status
Victor Thompson Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+245996@code.launchpad.net

Commit message

* Reset swipe when flicking view (currently ignores if you flick by touching the swiped listitem)

Description of the change

* Reset swipe when flicking view (currently ignores if you flick by touching the swiped listitem)

Currently if you scroll by touching the currently swiped listitem it will not be reset, this aligns us with the SDK and other system app behaviours.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Victor Thompson (vthompson) wrote :

LGTM!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'common/ListItemWithActions.qml'
2--- common/ListItemWithActions.qml 2014-11-20 01:08:37 +0000
3+++ common/ListItemWithActions.qml 2015-01-09 18:30:38 +0000
4@@ -261,6 +261,11 @@
5 Connections { // CUSTOM
6 target: root.parent.parent
7 onClearSelection: selected = false
8+ onFlickingChanged: {
9+ if (root.parent.parent.flicking) {
10+ root.resetSwipe()
11+ }
12+ }
13 onSelectAll: selected = true
14 onStateChanged: selectionMode = root.parent.parent.state === "multiselectable"
15 }

Subscribers

People subscribed via source and target branches