image/zoom: Force zoom to center for buttons
Before, using buttons on touchscreen could zoom to the cursor position.
This commit is contained in:
parent
88099b1ec9
commit
b1d1d547cf
6 changed files with 94 additions and 46 deletions
|
|
@ -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"],
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue