Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
I am capturing Android touch gestures in a child control of ScrollView. Everything works well but under specific conditions I receive ACTION_CANCEL and stop receiving touch events. I narrowed this down to the Xamarin.Forms ScrollView. It happens under these conditions:
1. I touch the screen with 2 fingers
2. I can move one finger up and down and left and right and continue receiving events
3. I can move the second finger up and down and continue to receive events
4. When I move the second finger left or right, I receive ACTION_CANCEL
This happens even though the scroll view is not able to scroll (small content) and even though I disabled ScrollView capturing by settings InputTransparent in the PCL and doing this in a subclassed renderer:
public override bool OnInterceptTouchEvent(MotionEvent ev)
Conclusion: there is a bug in the Android ScrollView renderer which causes the ACTION_CANCEL when it should not. When I replace the ScrollView with another container control the problem goes away.
I am hoping someone can see this bug just by looking at code but if necessary I can create a sample project to show this.
I managed to replicate this with single finger tough as well. I have a vertical ScrollView and am able to move child elements using vertical finger movement, but the moment the finger moves left or right, ACTION_CANCEL is received and gesture notifications stop.
This is pointing very strongly at being a ScrollView bug
Thank you for your feedback! I will make sure it gets passed along to the appropriate person! :)
This appears to be fixed in 188.8.131.5265-pre1 but it's difficult to verify because of https://bugzilla.xamarin.com/show_bug.cgi?id=26665