From 2c2a605f797619d05557702080b3ba83dc4b26e2 Mon Sep 17 00:00:00 2001 From: "Simon (darkside) Jackson" Date: Fri, 25 Sep 2020 16:02:03 +0100 Subject: [PATCH] Fixing Vertical snap too --- Runtime/Scripts/Layout/VerticalScrollSnap.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Runtime/Scripts/Layout/VerticalScrollSnap.cs b/Runtime/Scripts/Layout/VerticalScrollSnap.cs index 87f7d32..a8228d8 100644 --- a/Runtime/Scripts/Layout/VerticalScrollSnap.cs +++ b/Runtime/Scripts/Layout/VerticalScrollSnap.cs @@ -45,6 +45,8 @@ namespace UnityEngine.UI.Extensions } } + if (UseHardSwipe) return; + CurrentPage = GetPageforPosition(_screensContainer.anchoredPosition); //If the container is moving check if it needs to settle on a page