Skip to content

Commit 3df8bb6

Browse files
author
Franco Bugnano
committed
Commented the rationale behind the VerticalDragGestureRecognizer
1 parent 4c548f9 commit 3df8bb6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/src/chatbox.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ class ChatBoxState extends State<ChatBox> {
195195
JavascriptChannel(name: 'JSCCustomMessageAction', onMessageReceived: _jscCustomMessageAction),
196196
},
197197
gestureRecognizers: {
198+
// We need only the VerticalDragGestureRecognizer in order to be able to scroll through the messages
198199
Factory(() => VerticalDragGestureRecognizer()),
199200
},
200201
);

lib/src/conversationlist.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ class ConversationListState extends State<ConversationList> {
154154
JavascriptChannel(name: 'JSCLoadingState', onMessageReceived: _jscLoadingState),
155155
},
156156
gestureRecognizers: {
157+
// We need only the VerticalDragGestureRecognizer in order to be able to scroll through the conversations
157158
Factory(() => VerticalDragGestureRecognizer()),
158159
},
159160
);

0 commit comments

Comments
 (0)