Take Event by reference in Widget::update
This commit is contained in:
parent
1b01d6718b
commit
afef368d8a
49 changed files with 111 additions and 155 deletions
|
|
@ -380,7 +380,7 @@ mod grid {
|
|||
fn update(
|
||||
&self,
|
||||
interaction: &mut Interaction,
|
||||
event: Event,
|
||||
event: &Event,
|
||||
bounds: Rectangle,
|
||||
cursor: mouse::Cursor,
|
||||
) -> Option<canvas::Action<Message>> {
|
||||
|
|
@ -471,7 +471,7 @@ mod grid {
|
|||
_ => action.and_capture(),
|
||||
})
|
||||
}
|
||||
mouse::Event::WheelScrolled { delta } => match delta {
|
||||
mouse::Event::WheelScrolled { delta } => match *delta {
|
||||
mouse::ScrollDelta::Lines { y, .. }
|
||||
| mouse::ScrollDelta::Pixels { y, .. } => {
|
||||
if y < 0.0 && self.scaling > Self::MIN_SCALING
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue