You maybe will have luck with DragFilter:
https://github.com/CODeRUS/better-sailfishos-qmltypes/blob/Sdk1701/Sailfish/Silica/BackgroundItem.qml#L59

2017-11-24 22:29 GMT+03:00 micu <micuin...@gmx.de>:

>
> Ola ya fellow Sailors,
>
>
> For our app [1] we recently developed 'SwipeView' for pictures
> (which lets you horizontally swipe through a bunch of pictures):
>
>     <https://github.com/micuintus/harbour-Berlin-Vegan/pull/163/files>
>
> This SwipeView is implemented with a horizontally oriented ListView and it
> sits on a Flickable (vertical), which in turn lives on a Sailfish page.
>
> We mow face the issue that the horizontal swipe gestures of the SwipeView
> conflict with the horizontal back-and-forth navigation of the Sailfish page
> stack. Meaning: You want to flick through the pictures, but instead you
> would
> accidentally navigate back to the previous or the next (attached pushed)
> page
> on
> the stack. Side note: We do *not* struggle with this issue on iOS/V-Play.
> It
> seems that there the back navigation is only enabled close to the edge of
> the
> screen.
>
>
>     Do you have any suggestion for solving this issue?
>
>
> The 'MouseArea' component has the 'preventStealing' property, which I
> think is
> exactly there for preventing this problem. But 'ListView' has its own mouse
> handling and it is not derived from 'MouseArea'.
>
> One solution I could think of would be implementing my own QQuickItem,
> which
> catches all mouse events and only forwards them to its children or only to
> one
> Item you can specify. I could even think of a frame round the edges, where
> it
> doesn't catch the mouse events away from the parents.
>
> Do you have any better suggestion? Perhaps even one, which leverages a more
> intelligent intended gesture detection and which is able to figure out,
> when
> the user wants to swipe pictures and when they want to interact with the
> page
> navigation.
>
> Any help is highly appreciated.
>
> BTW: We have the exact same issue with our map page. The 'Map' component
> *is*
> derived from 'MouseArea', but its still on version 5.0/5.2, where
> 'preventStealing' wasn't available yet. I know, I asked this before, but
> can
> we expect QtLoction 5.6 to enter the Sailfish SDK and be officially allowed
> for harbour apps --- an when? :)
>
> Kind regards and happy sailing,
>
> micu
>
>
> --
> [1] <http://www.micuintus.de/2017/10/01/cross-platform-mobile-
> app-development-for-ios-sailfishos-and-android-with-qtqml/>
> --
> OpenPGP / GnuPG:        0xE4CB4E80
> Fingerprint:            1A15 A480 1F8B 07F6 9D12 3426 CEFE 7455 E4CB 4E80
>
> <<</>>
>
> http://www.micuintus.de
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to