Skip to content

Commit c2a1c18

Browse files
authored
Merge pull request #51 from linhanyu/master
Fix scroll problem in mobile device.
2 parents 73d1e58 + 01bb679 commit c2a1c18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/frontend/terminal_view.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ class _TerminalViewState extends State<TerminalView> {
203203

204204
/// use [_EmptyScrollActivity] to suppress unexpected behaviors
205205
/// that come from [applyViewportDimension].
206-
if (position is ScrollActivityDelegate) {
206+
if (InputBehaviors.platform == InputBehaviors.desktop &&
207+
position is ScrollActivityDelegate) {
207208
position.beginActivity(
208209
_EmptyScrollActivity(position as ScrollActivityDelegate),
209210
);

0 commit comments

Comments
 (0)