image: More fine-grained zoom instructions
Add parameters to use zoom_to without animation or snapping to best fit. Hopefully fixing 100%/200% snapping to best fit when close to filling the window and fixing high res scroll wheel bugs. Closes #120, #134 Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/177>
This commit is contained in:
parent
44e265374b
commit
e96b9ccac9
4 changed files with 55 additions and 47 deletions
|
|
@ -147,8 +147,14 @@ impl LpApplication {
|
|||
self.set_accels_for_action("win.first", &["Home"]);
|
||||
self.set_accels_for_action("win.last", &["End"]);
|
||||
|
||||
self.set_accels_for_action("win.zoom-to(1.0)", &["1", "KP_1", "<Ctrl>1", "<Ctrl>KP_1"]);
|
||||
self.set_accels_for_action("win.zoom-to(2.0)", &["2", "KP_2", "<Ctrl>2", "<Ctrl>KP_2"]);
|
||||
self.set_accels_for_action(
|
||||
"win.zoom-to-exact(1.0)",
|
||||
&["1", "KP_1", "<Ctrl>1", "<Ctrl>KP_1"],
|
||||
);
|
||||
self.set_accels_for_action(
|
||||
"win.zoom-to-exact(2.0)",
|
||||
&["2", "KP_2", "<Ctrl>2", "<Ctrl>KP_2"],
|
||||
);
|
||||
self.set_accels_for_action("win.zoom-best-fit", &["0", "KP_0", "<Ctrl>0", "<Ctrl>KP_0"]);
|
||||
self.set_accels_for_action(
|
||||
"win.zoom-in",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue