From a9c36ff8b6dcae904f7b94f1da9bab08dab22617 Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 25 Jan 2022 19:18:36 +0100 Subject: [PATCH] Only zoom with the scroll wheen when over the canvas. --- game/addons/Godoxel/Editor.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/addons/Godoxel/Editor.gd b/game/addons/Godoxel/Editor.gd index 2e8f9170..b9561b8a 100644 --- a/game/addons/Godoxel/Editor.gd +++ b/game/addons/Godoxel/Editor.gd @@ -142,7 +142,7 @@ func _input(event): if event is InputEventKey and event.is_pressed() and not event.is_echo(): _handle_shortcuts(event.scancode) - if is_mouse_in_canvas(): + if is_mouse_in_canvas() and paint_canvas.mouse_on_top: _handle_zoom(event) if paint_canvas.is_active_layer_locked():