xuty 3 лет назад
Родитель
Сommit
fc644ddcf3
1 измененных файлов с 2 добавлено и 1 удалено
  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.
   /// The distance from the top of the terminal to the top of the viewport.
   // double get _scrollOffset => _offset.pixels;
   // double get _scrollOffset => _offset.pixels;
   double get _scrollOffset {
   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.
   /// Get the top-left corner of the cell at [cellOffset] in pixels.