mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Fix undo/redo not working if the cursor is over the timeline
This commit is contained in:
parent
d0ecf3b03d
commit
fede2d8e6f
|
@ -140,7 +140,9 @@ func _input(event: InputEvent) -> void:
|
||||||
var timeline_rect := Rect2(global_position, size)
|
var timeline_rect := Rect2(global_position, size)
|
||||||
if timeline_rect.has_point(mouse_pos):
|
if timeline_rect.has_point(mouse_pos):
|
||||||
if Input.is_key_pressed(KEY_CTRL):
|
if Input.is_key_pressed(KEY_CTRL):
|
||||||
cel_size += (2 * int(event.is_action("zoom_in")) - 2 * int(event.is_action("zoom_out")))
|
var zoom := 2 * int(event.is_action("zoom_in")) - 2 * int(event.is_action("zoom_out"))
|
||||||
|
cel_size += zoom
|
||||||
|
if zoom != 0:
|
||||||
get_viewport().set_input_as_handled()
|
get_viewport().set_input_as_handled()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue