summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-06-27 03:40:04 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-06-27 03:40:04 +0200
commitb5d842f877145c78f5d595a87cc1927bb6f5b86a (patch)
tree41cbfafa37b7f08b40a24dfd3714dfcc9812706b /graphics
parent754b8f819e223c7d31f633f43d322dcc0a0d3b93 (diff)
downloadiced-b5d842f877145c78f5d595a87cc1927bb6f5b86a.tar.gz
iced-b5d842f877145c78f5d595a87cc1927bb6f5b86a.tar.bz2
iced-b5d842f877145c78f5d595a87cc1927bb6f5b86a.zip
Show idle cursor when hovering a disabled `Button`
Diffstat (limited to 'graphics')
-rw-r--r--graphics/src/widget/button.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/src/widget/button.rs b/graphics/src/widget/button.rs
index aeb862d5..ecabc868 100644
--- a/graphics/src/widget/button.rs
+++ b/graphics/src/widget/button.rs
@@ -103,7 +103,7 @@ where
} else {
content
},
- if is_mouse_over {
+ if is_mouse_over && !is_disabled {
mouse::Interaction::Pointer
} else {
mouse::Interaction::default()