We have a problem here: there's no way for us to know whether the
overlaid MouseArea did or did not accept mouse events.
childMouseEventFilter acts prior the MouseArea's mousePressed() is
handled, so the event is still in accepted state. As result of
onPressed: mouse.accepted = false, ListItem is also getting the mouse
event, but the accepted state is still true.

We could rely on mouseEvent() being caught when overlaid items do not
accept mouse events, after all all accepted events are suppressed and
ListItem's event handler won't be called anymore...

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

Title:
  [listitem] swiping doesn't work when a mousearea on top doesn't accept
  the mouse event

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1484545/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to