mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 15:54:44 -04:00
Retain the zoom factor when adding a new frame
Also, when importing a PNG, the window title changes.
This commit is contained in:
parent
31a67fcbc2
commit
704dcf90c0
4 changed files with 104 additions and 99 deletions
|
@ -27,7 +27,6 @@ func _input(event : InputEvent) -> void:
|
|||
# Zoom Camera
|
||||
func zoom_camera(dir : int) -> void:
|
||||
var zoom_margin = zoom * dir / 10
|
||||
#if zoom + zoom_margin > zoom_min && zoom + zoom_margin < zoom_max:
|
||||
if zoom + zoom_margin > zoom_min:
|
||||
zoom += zoom_margin
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue