Merge lp:~renatofilho/address-book-app/fix-fast-scroll into lp:~phablet-team/address-book-app/staging

Proposed by Renato Araujo Oliveira Filho
Status: Merged
Approved by: Renato Araujo Oliveira Filho
Approved revision: 236
Merged at revision: 236
Proposed branch: lp:~renatofilho/address-book-app/fix-fast-scroll
Merge into: lp:~phablet-team/address-book-app/staging
Diff against target: 24 lines (+3/-3)
1 file modified
src/imports/Ubuntu/Contacts/FastScroll.qml (+3/-3)
To merge this branch: bzr merge lp:~renatofilho/address-book-app/fix-fast-scroll
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Tiago Salem Herrmann (community) Approve
Review via email: mp+229983@code.launchpad.net

Commit message

[FastScroll]
 - Fixed text color when letter is selected
 - Avoid make the letter empty when scrolling over it, this was causing problems on fast scroll.
 - Only shows fastcroll if list is flicking, this will make sure that the fast scroll does not appear during the longpress.

To post a comment you must log in.
Revision history for this message
Tiago Salem Herrmann (tiagosh) wrote :

works fine on the device.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/imports/Ubuntu/Contacts/FastScroll.qml'
2--- src/imports/Ubuntu/Contacts/FastScroll.qml 2014-07-24 12:42:38 +0000
3+++ src/imports/Ubuntu/Contacts/FastScroll.qml 2014-08-07 18:44:25 +0000
4@@ -140,7 +140,7 @@
5 id: rail
6
7 property bool isVisible: root.enabled &&
8- (listView.moving || dragArea.pressed) &&
9+ (listView.flicking || dragArea.pressed) &&
10 (listView.currentIndex == -1)
11 anchors {
12 right: parent.right
13@@ -178,9 +178,9 @@
14 width: pinSize
15 verticalAlignment: Text.AlignVCenter
16 horizontalAlignment: Text.AlignHCenter
17- text: internal.fastScrolling && internal.targetSection == modelData ? "" : modelData
18+ text: modelData
19 fontSize: "x-small"
20- color: internal.currentItem && (internal.currentItem.text === text) ? Theme.palette.selected.foregroundText : Theme.palette.selected.backgroundText
21+ color: cursor.y === y ? "white" : Theme.palette.selected.backgroundText
22 opacity: !internal.modelDirty && Sections.contains(text) ? 1.0 : 0.5
23 }
24 }

Subscribers

People subscribed via source and target branches