From 4574b3810bb3fcdc096734bc3fed331028a2cd69 Mon Sep 17 00:00:00 2001 From: David Finol Date: Wed, 15 Nov 2023 09:01:17 -0600 Subject: [PATCH] Set default zoom to min zoom --- Assets/Scripts/Cgs/Play/PlayController.cs | 2 +- Assets/Scripts/Cgs/UI/ScrollRects/RotateZoomableScrollRect.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/Cgs/Play/PlayController.cs b/Assets/Scripts/Cgs/Play/PlayController.cs index 767691e8..dc5e2281 100644 --- a/Assets/Scripts/Cgs/Play/PlayController.cs +++ b/Assets/Scripts/Cgs/Play/PlayController.cs @@ -33,7 +33,7 @@ public class PlayController : MonoBehaviour, ICardDropHandler public const string RestartPrompt = "Restart?"; public const string DefaultStackName = "Stack"; - private const float DefaultZoom = 0.75f; + private const float DefaultZoom = 0.5f; private const float PlayAreaBuffer = 8; private const float DeckPositionBuffer = 50; diff --git a/Assets/Scripts/Cgs/UI/ScrollRects/RotateZoomableScrollRect.cs b/Assets/Scripts/Cgs/UI/ScrollRects/RotateZoomableScrollRect.cs index 64e57842..61299477 100644 --- a/Assets/Scripts/Cgs/UI/ScrollRects/RotateZoomableScrollRect.cs +++ b/Assets/Scripts/Cgs/UI/ScrollRects/RotateZoomableScrollRect.cs @@ -15,7 +15,7 @@ public class RotateZoomableScrollRect : ScrollRect, IPointerEnterHandler, IPoint { private const float MinRotation = -180; // Also in PlayMatRotation slider private const float MaxRotation = 180; // Also in PlayMatRotation slider - public const float MinZoom = 0.5f; // Also in PlayMatZoom slider + private const float MinZoom = 0.5f; // Also in PlayMatZoom slider private const float MaxZoom = 1.5f; // Also in PlayMatZoom slider private const float MouseRotationSensitivity = 360; private const float ZoomLerpSpeed = 7.5f;