mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Only zoom with the scroll wheen when over the canvas.
This commit is contained in:
parent
f6de6a0a8a
commit
a9c36ff8b6
@ -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():
|
||||||
|
Loading…
Reference in New Issue
Block a user