xuty пре 3 година
родитељ
комит
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.
   // 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.