diff options
| author | 2024-08-14 18:02:33 +0200 | |
|---|---|---|
| committer | 2024-08-14 18:02:33 +0200 | |
| commit | 9ed7fb88663963c3b53eb109eebbc82ebfa479f3 (patch) | |
| tree | b7f86c81b60d235d01c5bd69d570aa34efb3f449 /examples | |
| parent | 8b45d620d048c33febbead4480d9ef62f196c9e1 (diff) | |
| download | iced-9ed7fb88663963c3b53eb109eebbc82ebfa479f3.tar.gz iced-9ed7fb88663963c3b53eb109eebbc82ebfa479f3.tar.bz2 iced-9ed7fb88663963c3b53eb109eebbc82ebfa479f3.zip | |
Fix cursor passthrough in `Stack` during `draw`
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/modal/src/main.rs | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/examples/modal/src/main.rs b/examples/modal/src/main.rs index f1f0e8ad..067ca24d 100644 --- a/examples/modal/src/main.rs +++ b/examples/modal/src/main.rs @@ -201,19 +201,21 @@ where { stack![ base.into(), - mouse_area(center(opaque(content)).style(|_theme| { - container::Style { - background: Some( - Color { - a: 0.8, - ..Color::BLACK - } - .into(), - ), - ..container::Style::default() - } - })) - .on_press(on_blur) + opaque( + mouse_area(center(opaque(content)).style(|_theme| { + container::Style { + background: Some( + Color { + a: 0.8, + ..Color::BLACK + } + .into(), + ), + ..container::Style::default() + } + })) + .on_press(on_blur) + ) ] .into() } |
