From 2d69c05f33d5d4fae4678053ba662b02c5321ac9 Mon Sep 17 00:00:00 2001 From: dom Date: Sun, 8 Mar 2026 00:24:18 +0800 Subject: [PATCH] tweak Signed-off-by: dom --- lib/pages/common/common_page.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pages/common/common_page.dart b/lib/pages/common/common_page.dart index 5570e63ff..c5f3ba4f0 100644 --- a/lib/pages/common/common_page.dart +++ b/lib/pages/common/common_page.dart @@ -80,13 +80,13 @@ abstract class CommonPageState extends State { 0.0, StyleString.topBarHeight, ); - final offset = newValue - value; + final offset = value - newValue; if (offset != 0) { _barOffset!.value = newValue; if (pixel < 0.0 && scrollDelta < 0.0 && value > 0.0) { return false; } - Scrollable.of(notification.context!).position.correctBy(-offset); + Scrollable.of(notification.context!).position.correctBy(offset); } } else { _updateOffset(scrollDelta);