mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
@@ -80,13 +80,13 @@ abstract class CommonPageState<T extends StatefulWidget> extends State<T> {
|
|||||||
0.0,
|
0.0,
|
||||||
StyleString.topBarHeight,
|
StyleString.topBarHeight,
|
||||||
);
|
);
|
||||||
final offset = newValue - value;
|
final offset = value - newValue;
|
||||||
if (offset != 0) {
|
if (offset != 0) {
|
||||||
_barOffset!.value = newValue;
|
_barOffset!.value = newValue;
|
||||||
if (pixel < 0.0 && scrollDelta < 0.0 && value > 0.0) {
|
if (pixel < 0.0 && scrollDelta < 0.0 && value > 0.0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Scrollable.of(notification.context!).position.correctBy(-offset);
|
Scrollable.of(notification.context!).position.correctBy(offset);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
_updateOffset(scrollDelta);
|
_updateOffset(scrollDelta);
|
||||||
|
|||||||
Reference in New Issue
Block a user