Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using a checkbox within a ScrollView should not change checked state from scroll events #368

Open
Kas-code opened this issue Mar 26, 2024 · 0 comments

Comments

@Kas-code
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Try the provided xaml, this uses checkboxes within a ScrollView.
  2. Increase the number of checkboxes and labels so that you have enough content to be larger than your device's screen size which will make the ScrollView scroll when dragging up and down (basically just anything to provide enough content to be able to scroll)
  3. When you drag content in the ScrollView up and down, this makes the ScrollView scroll up and down, but if you tap on the text of a checkbox to scroll up and down, then this checks the checkbox

Expected behavior

Checkboxes should not get checked when the user is dragging the screen to scroll. The checkbox should only check or uncheck when the tap event comes from a non-scroll event.

It's very inconvenient to users if they have to be selective about which parts of the screen they can drag on to scroll. They should be able to drag on any part of the screen to scroll up and down, without having to worry about acidentally checking a checkbox.

<ScrollView>
	<VerticalStackLayout>
              <Label Text="Test test test" />
	      <input:CheckBox Text="Test test test" />
	      <Label Text="Test test test" />
	      <input:CheckBox Text="Test test test" />
	      <Label Text="Test test test" />
	      <input:CheckBox Text="Test test test" />
	      <Label Text="Test test test" />
	      <input:CheckBox Text="Test test test" />
	</VerticalStackLayout>
</ScrollView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant