Przeglądaj źródła

Fix scroll problem in mobile device. Only clear Scroll event in Desktop environment

翰宇 林 4 lat temu
rodzic
commit
01bb679b70
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      lib/frontend/terminal_view.dart

+ 2 - 1
lib/frontend/terminal_view.dart

@@ -175,7 +175,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),
                   );