image/zoom: Force zoom to center for buttons

Before, using buttons on touchscreen could zoom to the cursor position.
This commit is contained in:
Sophie Herold 2024-01-04 14:33:23 +01:00
parent 88099b1ec9
commit b1d1d547cf
6 changed files with 94 additions and 46 deletions

View file

@ -170,7 +170,7 @@ impl LpApplication {
);
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",
"win.zoom-in-cursor",
&[
"<Ctrl>plus",
"plus",
@ -181,7 +181,7 @@ impl LpApplication {
],
);
self.set_accels_for_action(
"win.zoom-out",
"win.zoom-out-cursor",
&["<Ctrl>minus", "minus", "<Ctrl>KP_Subtract", "KP_Subtract"],
);