diff --git a/lib/pages/chat/chat_event_list.dart b/lib/pages/chat/chat_event_list.dart index 14f7f9d250..e043178bb1 100644 --- a/lib/pages/chat/chat_event_list.dart +++ b/lib/pages/chat/chat_event_list.dart @@ -19,6 +19,7 @@ import 'package:fluffychat/utils/matrix_sdk_extensions/filtered_timeline_extensi import 'package:visibility_detector/visibility_detector.dart'; class ChatEventList extends StatelessWidget { + static const visibleFractionAvailable = 0.1; final ChatController controller; const ChatEventList({ @@ -134,7 +135,8 @@ class ChatEventList extends StatelessWidget { onVisibilityChanged: (visibilityInfo) => controller.handleMessageVisibilityChanged( event, - visibilityInfo.visibleFraction > 0.1, + visibilityInfo.visibleFraction > + visibleFractionAvailable, ), child: Message( event,