summaryrefslogtreecommitdiffstats
path: root/widget/src/stack.rs
diff options
context:
space:
mode:
authorLibravatar Héctor <hector@hecrj.dev>2025-02-01 03:14:08 +0100
committerLibravatar GitHub <noreply@github.com>2025-02-01 03:14:08 +0100
commit91f94f3b6e62bf05fb82b3c3bd999eff7b3fd339 (patch)
treed9cb9cdf2a2c59e9b0ca01f5760033c994df730d /widget/src/stack.rs
parent30ee9d024d00403f2fc0571946fa9ca398117e05 (diff)
parented0ffb59634424bb58540bdfdc4994d6665028ea (diff)
downloadiced-91f94f3b6e62bf05fb82b3c3bd999eff7b3fd339.tar.gz
iced-91f94f3b6e62bf05fb82b3c3bd999eff7b3fd339.tar.bz2
iced-91f94f3b6e62bf05fb82b3c3bd999eff7b3fd339.zip
Merge pull request #2776 from iced-rs/fix/markdown
Incremental `markdown` parsing and various fixes
Diffstat (limited to 'widget/src/stack.rs')
-rw-r--r--widget/src/stack.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/widget/src/stack.rs b/widget/src/stack.rs
index d2828c56..12ed941d 100644
--- a/widget/src/stack.rs
+++ b/widget/src/stack.rs
@@ -216,6 +216,8 @@ where
viewport: &Rectangle,
) {
let is_over = cursor.is_over(layout.bounds());
+ let is_mouse_movement =
+ matches!(event, Event::Mouse(mouse::Event::CursorMoved { .. }));
for ((child, state), layout) in self
.children
@@ -235,7 +237,10 @@ where
viewport,
);
- if is_over && cursor != mouse::Cursor::Unavailable {
+ if is_over
+ && !is_mouse_movement
+ && cursor != mouse::Cursor::Unavailable
+ {
let interaction = child.as_widget().mouse_interaction(
state, layout, cursor, viewport, renderer,
);