Expose DirectionalDragArea in the UITK
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.
Changed in unity8 (Ubuntu): | |
status: | New → In Progress |
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.