We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97bbc1d commit 0c8c910Copy full SHA for 0c8c910
1 file changed
lib/modules/live_play/widgets/danmaku_list_view.dart
@@ -161,6 +161,17 @@ class DanmakuListViewState extends State<DanmakuListView> {
161
}
162
163
164
+ if (notification.direction == ScrollDirection.reverse || notification.direction == ScrollDirection.idle) {
165
+ final distanceToBottom = position.maxScrollExtent - position.pixels;
166
+ if (distanceToBottom <= 20) {
167
+ if (!_autoScrollEnabled) {
168
+ setState(() {
169
+ _autoScrollEnabled = true;
170
+ userScrolling = false;
171
+ });
172
+ }
173
174
175
176
177
@override
0 commit comments