ソースを参照

Merge pull request #51 from linhanyu/master

Fix scroll problem in mobile device.
xuty 4 年 前
コミット
c2a1c18f01
1 ファイル変更2 行追加1 行削除
  1. 2 1
      lib/frontend/terminal_view.dart

+ 2 - 1
lib/frontend/terminal_view.dart

@@ -203,7 +203,8 @@ class _TerminalViewState extends State<TerminalView> {
 
                 /// use [_EmptyScrollActivity] to suppress unexpected behaviors
                 /// that come from [applyViewportDimension].
-                if (position is ScrollActivityDelegate) {
+                if (InputBehaviors.platform == InputBehaviors.desktop &&
+                    position is ScrollActivityDelegate) {
                   position.beginActivity(
                     _EmptyScrollActivity(position as ScrollActivityDelegate),
                   );