Fix lints
This commit is contained in:
parent
ce23498edf
commit
bd13c580f0
1 changed files with 4 additions and 4 deletions
|
|
@ -288,7 +288,7 @@ fn update<Message: Clone, Theme, Renderer>(
|
||||||
| Event::Touch(touch::Event::FingerMoved { id: _, position }) = event
|
| Event::Touch(touch::Event::FingerMoved { id: _, position }) = event
|
||||||
{
|
{
|
||||||
let state: &mut State = tree.state.downcast_mut();
|
let state: &mut State = tree.state.downcast_mut();
|
||||||
handle_mouse_move(widget, state, shell, *position, layout.bounds())
|
handle_mouse_move(widget, state, shell, *position, layout.bounds());
|
||||||
}
|
}
|
||||||
|
|
||||||
if !cursor.is_over(layout.bounds()) {
|
if !cursor.is_over(layout.bounds()) {
|
||||||
|
|
@ -376,15 +376,15 @@ fn handle_mouse_move<Message: Clone, Theme, Renderer>(
|
||||||
widget.on_mouse_exit.as_mut(),
|
widget.on_mouse_exit.as_mut(),
|
||||||
) {
|
) {
|
||||||
(Some(enter_msg), _, _) if mouse_in_area && !state.mouse_in_area => {
|
(Some(enter_msg), _, _) if mouse_in_area && !state.mouse_in_area => {
|
||||||
shell.publish(enter_msg.clone())
|
shell.publish(enter_msg.clone());
|
||||||
}
|
}
|
||||||
(_, Some(build_move_msg), _)
|
(_, Some(build_move_msg), _)
|
||||||
if mouse_in_area && state.mouse_in_area =>
|
if mouse_in_area && state.mouse_in_area =>
|
||||||
{
|
{
|
||||||
shell.publish(build_move_msg(position))
|
shell.publish(build_move_msg(position));
|
||||||
}
|
}
|
||||||
(_, _, Some(exit_msg)) if !mouse_in_area && state.mouse_in_area => {
|
(_, _, Some(exit_msg)) if !mouse_in_area && state.mouse_in_area => {
|
||||||
shell.publish(exit_msg.clone())
|
shell.publish(exit_msg.clone());
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue