Sorry, UX, this doesn't solve the proper aiming on the
AdaptivePageLayout column divider.

Implementing such a functionality is pretty complex and error prone.
First, the order the overlapping components are receiving the touch
events is not predefined, and not even predictable. A touch event is
handled by the topmost instantiated component first, meaning if the
divider is above the Scrollbar, that will get the event first, and will
consume it. This means the Scrollbar below will not even see the event
coming.

In order to implement the event handling above, we could think of the  
following solutions:
1) Create a touch event handler component which would be shared between the 
scrollbar and the divider. The component will then need to be explicitly shared 
between the APL and Scrollbar -> cannot be automated by the toolkit and would 
require to expose some (weird) APIs for both Scrollbar/Scrollview and APL, and 
app developers would need to bind these two components manually.
2) make sure the Scrollview is parented so that is always going to be above the 
APL divider, in this way it can get the touch events prior to the APL divider. 
Then Scrollbar should consume vertical touch drags only, and APL divider the 
horizontal ones, but neither of these should consume the touch press events. 
This may cause problems as the touch events will be forwarded to the flickable 
component under the scrollbar, and no further touch events will be handled.

I was thinking more on a touch grabber spot presence on the APL divider,
and the touch events should be grabbed only when that spot is aimed.

BUT, we still have the mouse interaction, which had not been addressed
by UX at all. So I'm moving back the UX share to In Progress, until we
get a proper solution for both input use cases.

** Changed in: ubuntu-ux
       Status: Fix Committed => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1545118

Title:
  [AdaptivePageLayout] can't easily grab scrollbar if dual column

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1545118/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to