summaryrefslogtreecommitdiffstats
path: root/widget
diff options
context:
space:
mode:
authorLibravatar Chris Manning <cmanning999@gmail.com>2024-11-24 15:04:52 +0000
committerLibravatar Chris Manning <cmanning999@gmail.com>2024-11-24 15:04:52 +0000
commit0a39f5eac7987495de81f19c6c83258227312554 (patch)
tree08fc4f1806e1de25afcecae7a6412ebd930ef0dd /widget
parente8f8216ea1f9deef7f2d02fa2600a0b4e247f8fa (diff)
downloadiced-0a39f5eac7987495de81f19c6c83258227312554.tar.gz
iced-0a39f5eac7987495de81f19c6c83258227312554.tar.bz2
iced-0a39f5eac7987495de81f19c6c83258227312554.zip
Request redraw in tooltip widget when cursor is hovering
Diffstat (limited to 'widget')
-rw-r--r--widget/src/tooltip.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/widget/src/tooltip.rs b/widget/src/tooltip.rs
index e66f5e4a..3b9d2066 100644
--- a/widget/src/tooltip.rs
+++ b/widget/src/tooltip.rs
@@ -213,6 +213,8 @@ where
if was_idle != is_idle {
shell.invalidate_layout();
+ } else if self.position == Position::FollowCursor && *state != State::Idle {
+ shell.request_redraw();
}
self.content.as_widget_mut().update(