Skip to content

Commit

Permalink
Fix Ctrl + Middle mouse drag zooming (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiisu-Master authored Jul 22, 2024
1 parent 7ca12ba commit bd83b7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui_parts/viewport.gd
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ func _unhandled_input(event: InputEvent) -> void:
set_view(view.position + move_vec * factor / Indications.zoom * 32)

else:
_zoom_to = Vector2.ZERO # Reset Ctrl + MMB zoom position if released.
if not event.is_echo():
_zoom_to = Vector2.ZERO # Reset Ctrl + MMB zoom position if released.


func _on_zoom_changed(new_zoom_level: float, offset: Vector2) -> void:
Expand Down

0 comments on commit bd83b7e

Please sign in to comment.