[SailfishDevel] Silica: On-page drag interaction vs. page switching
Thomas Perl
th.perl at gmail.com
Fri Mar 1 07:14:18 UTC 2013
Hi,
While porting gPodder, I've noticed that right now, a drag interaction
on a page (e.g. seek bar for audio playback) conflicts with the "drag
to go back to previous page" gesture, see the video here:
http://youtu.be/dRYBG1fQ-kU
Is there anything I can do to "capture" the events and prevent the
page drag interaction from happening? (I'd still like to enable the
drag interaction for that page on non-interactive elements.)
How to reproduce:
- Create a UI with two Page {} elements
- Open the first, then the second page
- On the second page, have a UI Element (e.g. MouseArea) that allows dragging
The MouseArea I'm using is the one at the end of this file (right now,
that's line 113-130):
https://github.com/gpodder/gpodder/blob/master/share/gpodder/ui/qml/PlaybackBarProgress.qml
Is setting "accepted" on the MouseEvent enough or what is the
preferred way to deal with this?
Thanks,
Thomas
More information about the Devel
mailing list