fix: forward events to trailing element regardless of cursor position
This commit is contained in:
parent
2dda96c07f
commit
f17cd2928a
1 changed files with 12 additions and 14 deletions
|
|
@ -876,7 +876,6 @@ where
|
||||||
// Enable custom buttons defined on the trailing icon position to be handled.
|
// Enable custom buttons defined on the trailing icon position to be handled.
|
||||||
if !self.is_editable_variant {
|
if !self.is_editable_variant {
|
||||||
if let Some(trailing_layout) = trailing_icon_layout {
|
if let Some(trailing_layout) = trailing_icon_layout {
|
||||||
if cursor_position.is_over(trailing_layout.bounds()) {
|
|
||||||
let res = trailing_icon.as_widget_mut().on_event(
|
let res = trailing_icon.as_widget_mut().on_event(
|
||||||
tree,
|
tree,
|
||||||
event.clone(),
|
event.clone(),
|
||||||
|
|
@ -895,7 +894,6 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
let state = tree.state.downcast_mut::<State>();
|
let state = tree.state.downcast_mut::<State>();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue