remove redundant level condition; simplify level early return on ZoomMovement::Centered
This commit is contained in:
parent
4d14f5568f
commit
0596cce40d
2 changed files with 6 additions and 8 deletions
|
|
@ -2491,13 +2491,11 @@ impl Shell {
|
|||
movement: zoom_config.view_moves,
|
||||
});
|
||||
|
||||
if level > 1.0 {
|
||||
self.update_focal_point(
|
||||
seat,
|
||||
seat.get_pointer().unwrap().current_location().as_global(),
|
||||
zoom_config.view_moves,
|
||||
);
|
||||
}
|
||||
self.update_focal_point(
|
||||
seat,
|
||||
seat.get_pointer().unwrap().current_location().as_global(),
|
||||
zoom_config.view_moves,
|
||||
);
|
||||
}
|
||||
|
||||
pub fn update_focal_point(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue