enisn / Xamarin.Forms.InputKit

CheckBox, Radio Button, Labeled Slider, Dropdowns etc.
MIT License
589 stars 100 forks source link

MAUI: Swipes on CheckBox and RadioButton do not scroll a ScrollView #358

Open greg84 opened 1 year ago

greg84 commented 1 year ago

Describe the bug When a RadioButton or CheckBox is added to a StackLayout inside a ScrollView, swiping on the controls does not scroll the content.

This worked fine in Xamarin.Forms, but no longer works in MAUI.

To Reproduce

  1. Create a new, blank MAUI app.
  2. Add the following XAML to the page:
<ScrollView>
    <StackLayout>
        <ContentView BackgroundColor="Yellow" HeightRequest="500" />
        <input:CheckBox Text="Hello" />
        <input:CheckBox Text="Hello" />
        <input:CheckBox Text="Hello" />
        <input:RadioButton Text="Hello" />
        <input:RadioButton Text="Hello" />
        <input:RadioButton Text="Hello" />
        <ContentView BackgroundColor="Yellow" HeightRequest="500" />
    </StackLayout>
</ScrollView>
  1. Observe that scrolling works fine when swiping on the yellow areas.
  2. Try to swipe up and down while touching a CheckBox or RadioButton.

Expected behavior I would expect the ScrollView to scroll when a swipe gesture occurs on a CheckBox or RadioButton.

Smartphone (please complete the following information):

Additional context Using InputKit.MAUI 4.3.0