mirror of
https://github.com/material-components/material-components-android.git
synced 2026-01-21 04:22:42 +08:00
When BottomSheetBehavior is set to not draggable, it's still forwarding touch event to ViewDragHelper, which causes ViewDragHelper changes its state to dragging although it's not really dragging. This causes bugs like if we change draggable to true during "no-effect" dragging, ViewDragHelper won't report the dragging state change because it thinks the state is not changing. Fixes this by avoiding forwarding touch events to ViewDragHelper when it's not draggable, so its state won't be changed. Resolves https://github.com/material-components/material-components-android/issues/2258 PiperOrigin-RevId: 384942764