Skip to content

Commit

Permalink
round zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
Kl4rry committed Dec 10, 2024
1 parent 5734b93 commit 6dbeccd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/ferrite-core/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -901,17 +901,17 @@ impl Engine {
Cmd::ZoomIn => {
self.scale += 0.1;
self.palette
.set_msg(format!("Zoom: {}%", (self.scale * 100.0) as u64));
.set_msg(format!("Zoom: {}%", (self.scale * 100.0).round() as u64));
}
Cmd::ZoomOut => {
self.scale -= 0.1;
self.palette
.set_msg(format!("Zoom: {}%", (self.scale * 100.0) as u64));
.set_msg(format!("Zoom: {}%", (self.scale * 100.0).round() as u64));
}
Cmd::ResetZoom => {
self.scale = 1.0;
self.palette
.set_msg(format!("Zoom: {}%", (self.scale * 100.0) as u64));
.set_msg(format!("Zoom: {}%", (self.scale * 100.0).round() as u64));
}
input => {
if self.palette.has_focus() {
Expand Down

0 comments on commit 6dbeccd

Please sign in to comment.