diff options
author | 2024-08-14 19:06:16 +0200 | |
---|---|---|
committer | 2024-08-14 19:06:16 +0200 | |
commit | cfd2e7b116e49b295b3bb484a3f477a9f356d493 (patch) | |
tree | cc392ce6fdbd0c31fae080d464afb183610a0e46 | |
parent | 889d8b891fc6c9e74292767d009eb1481086b412 (diff) | |
download | iced-cfd2e7b116e49b295b3bb484a3f477a9f356d493.tar.gz iced-cfd2e7b116e49b295b3bb484a3f477a9f356d493.tar.bz2 iced-cfd2e7b116e49b295b3bb484a3f477a9f356d493.zip |
Short-circuit scrolling passthrough in `Stack`
-rw-r--r-- | widget/src/stack.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widget/src/stack.rs b/widget/src/stack.rs index b19212a6..9ccaa274 100644 --- a/widget/src/stack.rs +++ b/widget/src/stack.rs @@ -236,7 +236,7 @@ where viewport, ); - if is_over_scroll { + if is_over_scroll && cursor != mouse::Cursor::Unavailable { let interaction = child.as_widget().mouse_interaction( state, layout, cursor, viewport, renderer, ); |