From 0faa5fc08e0807df0650e55efcf417aa94d45994 Mon Sep 17 00:00:00 2001 From: GoShikhar Date: Fri, 17 May 2024 21:01:54 +0530 Subject: [PATCH] Update HorizontalScrollSnap.cs --- Runtime/Scripts/Layout/HorizontalScrollSnap.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Scripts/Layout/HorizontalScrollSnap.cs b/Runtime/Scripts/Layout/HorizontalScrollSnap.cs index 59877a0..9f7e841 100644 --- a/Runtime/Scripts/Layout/HorizontalScrollSnap.cs +++ b/Runtime/Scripts/Layout/HorizontalScrollSnap.cs @@ -17,14 +17,14 @@ namespace UnityEngine.UI.Extensions void Start() { _isVertical = false; - _childAnchorPoint = new Vector2(0, 0.5f); _currentPage = StartingScreen; panelDimensions = gameObject.GetComponent().rect; UpdateLayout(); } - void Update() + protected override void Update() { + base.Update(); updated = false; if (!_lerp && (_scroll_rect.velocity == Vector2.zero && _scroll_rect.inertia))