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

Decouple progress bar width and touchable area: add minimumTouchWidth argument #79

Open
tony-ditchlabs opened this issue May 2, 2022 · 0 comments

Comments

@tony-ditchlabs
Copy link

Use case:
When the user taps near, but not directly on, the progress bar, the widget doesn't update.

The problem:
In the _onPanDown and _handlePan methods, the touchWidth is defined as the greater of 25.0 or the progress bar width

The fix:
Change the number 25.0 to an argument in the constructor, minimumTouchWidth. This will let the designer/developer decide the fault tolerance for the slider. Setting it to double.infinity will ensure that every gesture is captured.

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