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))