Expose DirectionalDragArea in the UITK

Bug #1435805 reported by Olivier Tilloy
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Fix Released
Undecided
Unassigned
unity8 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

One strong principle in Ubuntu Touch’s UX is the use of edges.
In particular, the bottom edge is reserved for applications to implement innovative and useful interactions.

At the moment implementing such a gesture recognition in pure QML requires using an invisible mouse area at the bottom of the view to detect the start of a drag gesture. Unfortunately if there is content below that invisible drag area, it can’t be interacted with, because the mouse area will swallow mouse events.

In the unity8 code base, there is a custom component called DirectionalDragArea (implemented in C++) that solves this issue nicely. Unfortunately it’s private to unity8 and can’t be reused in applications.

This bug report is to request considering moving ownership of this component to the UITK, so that it can be exposed publicly and used by application developers.

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

Note that the browser application now uses a local copy of unity8’s DirectionalDragArea to implement its bottom-edge interactions.

This means code duplication, on top of depending on private Qt headers, so it’s really not a comfortable situation.

Revision history for this message
kevin gunn (kgunn72) wrote :

fwiw, it is on the unity8 team backlog, unfortunately not with any priority atm

Revision history for this message
kevin gunn (kgunn72) wrote :

this is actively being worked, part of our apr 13 sprint

kevin gunn (kgunn72)
Changed in unity8 (Ubuntu):
status: New → In Progress
Revision history for this message
Olivier Tilloy (osomon) wrote :

Any updates on that one?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Confirmed
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

Any updates on this one bug?

We need it to resolve issues with Ubuntu-calculator-app:
https://bugs.launchpad.net/ubuntu-calculator-app/+bug/1444564

Changed in unity8 (Ubuntu):
status: In Progress → Confirmed
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

It's called SwipeArea in ubuntu-ui-toolkit

Changed in ubuntu-ui-toolkit (Ubuntu):
status: Confirmed → Fix Released
Changed in unity8 (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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