Merge lp:~nik90/ubuntu-clock-app/fix-accidental-worldcity-trigger into lp:ubuntu-clock-app

Proposed by Nekhelesh Ramananthan
Status: Rejected
Rejected by: Nekhelesh Ramananthan
Proposed branch: lp:~nik90/ubuntu-clock-app/fix-accidental-worldcity-trigger
Merge into: lp:ubuntu-clock-app
Diff against target: 30 lines (+13/-0)
1 file modified
app/clock/ClockPage.qml (+13/-0)
To merge this branch: bzr merge lp:~nik90/ubuntu-clock-app/fix-accidental-worldcity-trigger
Reviewer Review Type Date Requested Status
Nekhelesh Ramananthan Disapprove
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+231230@code.launchpad.net

Commit message

Prevented accidental trigger of the add world city button by setting the flickable bounds behavior to stop at bounds during a flick. After the flick has ended, it is changed back to drag over bounds.

Description of the change

Prevent accidental trigger of the add world city button by setting the flickable bounds behavior to stop at bounds during a flick. After the flick has ended, it is changed back to drag over bounds.

This has improved the accidental trigger in many cases.

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
Nekhelesh Ramananthan (nik90) wrote :

Testing by popey shows promising results. The accidental trigger is much less now.

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

Design has provided a new design. Thereby rejecting this branch.

review: Disapprove

Unmerged revisions

59. By Nekhelesh Ramananthan

Prevent bouncy behavior when during flick

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'app/clock/ClockPage.qml'
2--- app/clock/ClockPage.qml 2014-08-06 20:14:02 +0000
3+++ app/clock/ClockPage.qml 2014-08-18 16:52:21 +0000
4@@ -50,6 +50,7 @@
5 contentWidth: parent.width
6 contentHeight: clock.height + date.height + locationRow.height
7 + worldCityColumn.height + units.gu(14)
8+ boundsBehavior: Flickable.DragOverBounds
9
10 PullToAdd {
11 id: addCityButton
12@@ -154,6 +155,18 @@
13 anchors.topMargin: units.gu(4)
14 }
15
16+ onFlickStarted: {
17+ boundsBehavior = Flickable.StopAtBounds
18+ }
19+
20+ onFlickEnded: {
21+ boundsBehavior = Flickable.DragOverBounds
22+ }
23+
24+ onDragStarted: {
25+ boundsBehavior = Flickable.DragOverBounds
26+ }
27+
28 onDragEnded: {
29 if(contentY < _minThreshold) {
30 mainStack.push(Qt.resolvedUrl("../worldclock/WorldCityList.qml"))

Subscribers

People subscribed via source and target branches