Fix event capturing in rich_text
This commit is contained in:
parent
7493b83031
commit
2fc94d9f44
1 changed files with 4 additions and 2 deletions
|
|
@ -395,9 +395,11 @@ where
|
|||
.state
|
||||
.downcast_mut::<State<Link, Renderer::Paragraph>>();
|
||||
|
||||
if self.hovered_link.is_some() {
|
||||
state.span_pressed = self.hovered_link;
|
||||
shell.capture_event();
|
||||
}
|
||||
}
|
||||
Event::Mouse(mouse::Event::ButtonReleased(mouse::Button::Left)) => {
|
||||
let state = tree
|
||||
.state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue