We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
scrollable
1 parent 0563ee8 commit ee03e5dCopy full SHA for ee03e5d
widget/src/scrollable.rs
@@ -876,18 +876,16 @@ where
876
}
877
Event::Touch(event)
878
if state.scroll_area_touched_at.is_some()
879
- || !mouse_over_y_scrollbar
880
- && !mouse_over_x_scrollbar =>
+ || (!mouse_over_y_scrollbar
+ && !mouse_over_x_scrollbar) =>
881
{
882
match event {
883
touch::Event::FingerPressed { .. } => {
884
- let Some(cursor_position) = cursor.position()
885
- else {
+ if cursor_over_scrollable.is_none() {
886
return;
887
- };
+ }
888
889
- state.scroll_area_touched_at =
890
- Some(cursor_position);
+ state.scroll_area_touched_at = cursor.position();
891
892
touch::Event::FingerMoved { .. } => {
893
if let Some(scroll_box_touched_at) =
0 commit comments