From 0482f505a6d1db53480384ee774ea3b957d9820c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E6=B5=B7?= <1464576565@qq.com> Date: Wed, 29 Apr 2026 18:12:56 +0800 Subject: [PATCH] =?UTF-8?q?[Opt]=20=E4=BC=98=E5=8C=96=E8=99=9A=E6=8B=9F?= =?UTF-8?q?=E5=88=97=E8=A1=A8=20Snap=E5=90=B8=E9=99=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/RecyclerView/Scroller/Scroller.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Runtime/RecyclerView/Scroller/Scroller.cs b/Runtime/RecyclerView/Scroller/Scroller.cs index 9c9bdc3..502423d 100644 --- a/Runtime/RecyclerView/Scroller/Scroller.cs +++ b/Runtime/RecyclerView/Scroller/Scroller.cs @@ -106,8 +106,6 @@ namespace AlicizaX.UI set => draggingEvent = value; } - public float dragStopTime = 0f; - public bool InputEnabled { get; set; } = true; protected virtual void Awake() @@ -215,9 +213,7 @@ namespace AlicizaX.UI { return; } - - dragStopTime = Time.time; - + velocity = GetDelta(eventData); position += velocity;