Skip to content

Commit 2d00747

Browse files
committed
Avoid dragging scroll area when touching scrollbars for Scrollable
1 parent f64e95e commit 2d00747

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

native/src/widget/scrollable.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,10 @@ pub fn update<Message>(
516516

517517
return event::Status::Captured;
518518
}
519-
Event::Touch(event) => {
519+
Event::Touch(event)
520+
if state.scroll_area_touched_at.is_some()
521+
|| !mouse_over_y_scrollbar && !mouse_over_x_scrollbar =>
522+
{
520523
match event {
521524
touch::Event::FingerPressed { .. } => {
522525
state.scroll_area_touched_at = Some(cursor_position);

0 commit comments

Comments
 (0)