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