Only zoom with the scroll wheen when over the canvas.

This commit is contained in:
Relintai 2022-01-25 19:18:36 +01:00
parent f6de6a0a8a
commit a9c36ff8b6

View File

@ -142,7 +142,7 @@ func _input(event):
if event is InputEventKey and event.is_pressed() and not event.is_echo(): if event is InputEventKey and event.is_pressed() and not event.is_echo():
_handle_shortcuts(event.scancode) _handle_shortcuts(event.scancode)
if is_mouse_in_canvas(): if is_mouse_in_canvas() and paint_canvas.mouse_on_top:
_handle_zoom(event) _handle_zoom(event)
if paint_canvas.is_active_layer_locked(): if paint_canvas.is_active_layer_locked():