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

Scroll Events in WheelTimePicker Affect Parent Components Like BottomSheet #56

Open
hammadbawara opened this issue Oct 22, 2024 · 0 comments

Comments

@hammadbawara
Copy link

Record_2024-10-22-12-37-51-ezgif com-video-to-gif-converter

Description:

Issue:
When using WheelTimePicker inside a scrollable component like a BottomSheet in Jetpack Compose, scrolling on the picker also scrolls the parent (e.g., the BottomSheet). This makes it hard for users to select time smoothly without the bottom sheet moving.

Expected Behavior:
The scroll gestures on the WheelTimePicker should be handled only by the picker, and the parent container (like the BottomSheet) should not move.

Actual Behavior:
When trying to scroll on the WheelTimePicker, the parent component (like the BottomSheet or any scrollable container) also moves, which interrupts the time selection process.

Steps to Reproduce:

  1. Add a WheelTimePicker inside a BottomSheet.
  2. Scroll the picker to change the time.
  3. Notice that the BottomSheet moves along with the picker.

Environment:

  • WheelPickerCompose Version [1.1.11]

Expected Solution:
The WheelTimePicker should block its scroll events from affecting any parent scrollable components, allowing users to scroll only within the picker without moving other parts of the UI.

This issue disrupts the user experience when using the WheelTimePicker in any scrollable container and needs to be addressed.

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