mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-12 16:53:07 +00:00
Compare commits
1 commit
e4afa794a4
...
99e2f86955
Author | SHA1 | Date | |
---|---|---|---|
|
99e2f86955 |
|
@ -140,10 +140,8 @@ func _input(event: InputEvent) -> void:
|
|||
var timeline_rect := Rect2(global_position, size)
|
||||
if timeline_rect.has_point(mouse_pos):
|
||||
if Input.is_key_pressed(KEY_CTRL):
|
||||
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()
|
||||
cel_size += (2 * int(event.is_action("zoom_in")) - 2 * int(event.is_action("zoom_out")))
|
||||
get_viewport().set_input_as_handled()
|
||||
|
||||
|
||||
func reset_settings() -> void:
|
||||
|
|
Loading…
Reference in a new issue