From 2fe1f8a4494ee6910dc66e260cc17a5dfa3b90c5 Mon Sep 17 00:00:00 2001 From: bloom <108045000+studiobloom@users.noreply.github.com> Date: Tue, 3 Mar 2026 00:53:51 -0500 Subject: [PATCH] Move zoom reset on rotate Move scrollView.zoomScale reset before calling CParsec.setFrame to prevent scale/layout glitches when using Zoom On --- OpenParsec/ParsecViewController.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenParsec/ParsecViewController.swift b/OpenParsec/ParsecViewController.swift index 675a6ce..016db1d 100644 --- a/OpenParsec/ParsecViewController.swift +++ b/OpenParsec/ParsecViewController.swift @@ -267,13 +267,13 @@ class ParsecViewController: UIViewController, UIScrollViewDelegate { let h = size.height let w = size.width + // Reset zoom on rotation + scrollView.zoomScale = 1.0 + self.glkView.updateSize(width: w, height: h) contentView.frame.size = CGSize(width: w, height: h) scrollView.contentSize = CGSize(width: w, height: h) CParsec.setFrame(w, h, UIScreen.main.scale) - - // Reset zoom on rotation - scrollView.zoomScale = 1.0 // Reset accessory view to ensure correct width in new orientation keyboardAccessoriesView = nil