summaryrefslogtreecommitdiffstats
path: root/native/src/widget
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/widget')
-rw-r--r--native/src/widget/scrollable.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/native/src/widget/scrollable.rs b/native/src/widget/scrollable.rs
index efd66d1b..46b757b9 100644
--- a/native/src/widget/scrollable.rs
+++ b/native/src/widget/scrollable.rs
@@ -896,7 +896,9 @@ fn notify_on_scroll<Message>(
shell: &mut Shell<'_, Message>,
) {
if let Some(on_scroll) = on_scroll {
- if content_bounds <= bounds {
+ if content_bounds.width <= bounds.width
+ && content_bounds.height <= bounds.height
+ {
return;
}