Explorar el Código

Disable line scroll mode

xuty hace 3 años
padre
commit
fc644ddcf3
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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.