Skip to content

Commit 2fd395a

Browse files
authored
Improve the scrolling performance by reducing the repaint areas (singerdmx#430)
1 parent da8e1ee commit 2fd395a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/widgets/text_line.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,9 @@ class RenderEditableTextLine extends RenderEditableBox {
579579
return _getPosition(position, 1.5);
580580
}
581581

582+
@override
583+
bool get isRepaintBoundary => true;
584+
582585
TextPosition? _getPosition(TextPosition textPosition, double dyScale) {
583586
assert(textPosition.offset < line.length);
584587
final offset = getOffsetForCaret(textPosition)

0 commit comments

Comments
 (0)