mirror of
https://github.com/elementary/gala.git
synced 2024-12-25 02:02:11 +03:00
Add feedback if zooming out is not possible (#884)
* Add feedback if zooming out is not possible * Main: Cuddle else Co-authored-by: Daniel Foré <daniel@elementary.io>
This commit is contained in:
parent
203e93c4e2
commit
e8801734d5
@ -80,11 +80,13 @@ namespace Gala.Plugins.Zoom {
|
|||||||
|
|
||||||
void zoom (bool @in) {
|
void zoom (bool @in) {
|
||||||
// Nothing to do if zooming out of our bounds is requested
|
// Nothing to do if zooming out of our bounds is requested
|
||||||
if (current_zoom <= 1.0f && !@in)
|
if (current_zoom <= 1.0f && !@in) {
|
||||||
return;
|
|
||||||
else if (current_zoom >= 10.0f && @in)
|
|
||||||
Gdk.beep ();
|
Gdk.beep ();
|
||||||
return;
|
return;
|
||||||
|
} else if (current_zoom >= 10.0f && @in) {
|
||||||
|
Gdk.beep ();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var wins = wm.ui_group;
|
var wins = wm.ui_group;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user