Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

TouchesCancelled being fired instead of TouchesEnded

$
0
0

Hi all,

I'm learning Xamarin and I have an app that started as an iOS app but I've started to port into a Xamarin Forms app. I've created a custom page renderer for one of the screens and ported the code across. It's mostly worked ok but the touch events seem different.

I have some code that runs in the TouchesEnded event which was fired fine in the iOS only version, but in the Xamarin Forms version that event isn't firing in the same way. Instead, TouchesCancelled gets called.

Normally, for a single quick touch you would see TouchesBegan and then TouchesEnded, but in Xamarin Forms I see TouchesBegan and then TouchesCancelled.

For a long press and some move, I see TouchesBegan, TouchesMoved and then TouchesCancelled on Xamarin Forms. For a longer move I see TouchesBegan, TouchesMoved and then TouchesEnded.

It seems inconsistent from the iOS only version. Is this a bug?

Regards

+Steve


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>