Parcourir la source

Disable line scroll mode

xuty il y a 3 ans
Parent
commit
fc644ddcf3
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      lib/src/ui/render.dart

+ 2 - 1
lib/src/ui/render.dart

@@ -243,7 +243,8 @@ class RenderTerminal extends RenderBox with RelayoutWhenSystemFontsChangeMixin {
   /// The distance from the top of the terminal to the top of the viewport.
   // double get _scrollOffset => _offset.pixels;
   double get _scrollOffset {
-    return _offset.pixels ~/ _charSize.height * _charSize.height;
+    // return _offset.pixels ~/ _charSize.height * _charSize.height;
+    return _offset.pixels;
   }
 
   /// Get the top-left corner of the cell at [cellOffset] in pixels.