No feedback when tap a button inside a scrollview. Only "click" gives feedback(iOS) RRS feed

  • Question

  • User70955 posted

    The problem is the lack of feedback on "tap" when button is in a scroll view. You have to push about ½ second before feedback is given. Appears only in iOS

    XAML for easily testing the issue <StackLayout> <Button Text="OUTSIDE SCROLL"></Button> <ScrollView> <Button Text="IN SCROLL"></Button> </ScrollView> </StackLayout> Is there anyone who has experienced the same thing and have a solution? Has tested several versions of Xamarin.Forms, same issue

    Regards Mattias

    Wednesday, August 3, 2016 10:17 AM

All replies

  • User64250 posted

    Hi Mattias, I think you have probably solved by now so I'm writing for the others who may find this post with the same problem :)

    You can fix this with a custom renderer, you just need to set the DelaysContentTouches property to false:

    public class ButtonScrollViewRenderer : ScrollViewRenderer { protected override void OnElementChanged(VisualElementChangedEventArgs e) { base.OnElementChanged(e); DelaysContentTouches = false; } }

    Wednesday, November 2, 2016 10:20 AM
  • User364633 posted

    Thanks a lot. I had the same problem and this solved it for me!

    Monday, January 22, 2018 12:30 PM