Merge lp://staging/~dandrader/unity/phablet_edgeDragInStage into lp://staging/unity/phablet

Proposed by Daniel d'Andrada
Status: Merged
Approved by: Michał Sawicz
Approved revision: no longer in the source branch.
Merged at revision: 734
Proposed branch: lp://staging/~dandrader/unity/phablet_edgeDragInStage
Merge into: lp://staging/unity/phablet
Diff against target: 248 lines (+97/-36)
5 files modified
Components/Stage.qml (+57/-25)
plugins/Ubuntu/Gestures/DirectionalDragArea.cpp (+1/-1)
tests/qmltests/CMakeLists.txt (+6/-2)
tests/qmltests/Components/tst_Stage.qml (+8/-8)
tests/utils/modules/Unity/Test/UnityTestCase.qml (+25/-0)
To merge this branch: bzr merge lp://staging/~dandrader/unity/phablet_edgeDragInStage
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Michał Sawicz Approve
Review via email: mp+166777@code.staging.launchpad.net

Commit message

Stage: use a DirectionalDragArea instead of a DraggingArea for its right edge

That way its right-edge drag action will only trigger once a proper leftwards
directional drag is performed.

Description of the change

Stage: use a DirectionalDragArea instead of a DraggingArea for its right edge

That way its right-edge drag action will only trigger once a proper leftwards directional drag is performed.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

Noticed a strange issue. Back to "work in progress".

Revision history for this message
Daniel d'Andrada (dandrader) wrote :

Now it's good.

Wonder if it's worth putting commits 715 and 716 in their own separate merge proposals.

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) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michał Sawicz (saviq) wrote :

When tapping or swiping vertically in the reveal area, there's a split-second-long hint when the app comes in. When long-pressing there's some random animation, too.

It also seems that the threshold for completion is too low - if I press and hold near the edge, I can switch the app without really swiping. Maybe the velocity or the distance threshold need to be higher?

review: Needs Fixing
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

> When tapping or swiping vertically in the reveal area, there's a split-second-
> long hint when the app comes in. When long-pressing there's some random
> animation, too.

You mean a split-second shudder before the actual hint animation comes in? That's what I see on the device now. I should have tested on the device before... (doesn't happen on the desktop) :)
Looking into it.

> It also seems that the threshold for completion is too low - if I press and
> hold near the edge, I can switch the app without really swiping.

It's the same with the current implementation: you can switch apps even if your drag is very short.
Same with the panel.

Although I agree it should not be like that, I would rather change that in a separate patch. This one is just about s/DraggingArea/DirectionalDragArea. IMHO I think the user should swipe through at least 40%-50% of the screen width to get it done.

As for the hint animation: I think it would be better to get rid of it altogether. It kinda defeats the purpose of having a directional drag gesture recognition since the user will be disrupted by the hint animation anyway. I have a meeting with John Lea tomorrow about such things.

Revision history for this message
Michał Sawicz (saviq) wrote :

W dniu 03.06.2013 20:30, Daniel d'Andrada pisze:
>> When tapping or swiping vertically in the reveal area, there's a split-second-
>> > long hint when the app comes in. When long-pressing there's some random
>> > animation, too.
> You mean a split-second shudder before the actual hint animation comes in? That's what I see on the device now. I should have tested on the device before... (doesn't happen on the desktop) :)
> Looking into it.

Yup, that's it.

>> > It also seems that the threshold for completion is too low - if I press and
>> > hold near the edge, I can switch the app without really swiping.
> It's the same with the current implementation: you can switch apps even if your drag is very short.
> Same with the panel.
>
> Although I agree it should not be like that, I would rather change that in a separate patch. This one is just about s/DraggingArea/DirectionalDragArea. IMHO I think the user should swipe through at least 40%-50% of the screen width to get it done.

Works for me.

> As for the hint animation: I think it would be better to get rid of it altogether. It kinda defeats the purpose of having a directional drag gesture recognition since the user will be disrupted by the hint animation anyway. I have a meeting with John Lea tomorrow about such things.

I think it would be OK if the hint was less disruptive, glad you're
talking with John about that.

--
Michał Sawicz <email address hidden>
Canonical Services Ltd.

Revision history for this message
Daniel d'Andrada (dandrader) wrote :

Fixed.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michał Sawicz (saviq) :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches