File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -812,15 +812,6 @@ class RenderEditableTextLine extends RenderEditableBox {
812
812
if (_body != null ) {
813
813
final parentData = _body! .parentData as BoxParentData ;
814
814
final effectiveOffset = offset + parentData.offset;
815
- if (enableInteractiveSelection &&
816
- line.documentOffset <= textSelection.end &&
817
- textSelection.start <= line.documentOffset + line.length - 1 ) {
818
- final local = localSelection (line, textSelection, false );
819
- _selectedRects ?? = _body! .getBoxesForSelection (
820
- local,
821
- );
822
- _paintSelection (context, effectiveOffset);
823
- }
824
815
825
816
if (hasFocus &&
826
817
cursorCont.show.value &&
@@ -837,6 +828,17 @@ class RenderEditableTextLine extends RenderEditableBox {
837
828
cursorCont.style.paintAboveText) {
838
829
_paintCursor (context, effectiveOffset, line.hasEmbed);
839
830
}
831
+
832
+ // paint the selection on the top
833
+ if (enableInteractiveSelection &&
834
+ line.documentOffset <= textSelection.end &&
835
+ textSelection.start <= line.documentOffset + line.length - 1 ) {
836
+ final local = localSelection (line, textSelection, false );
837
+ _selectedRects ?? = _body! .getBoxesForSelection (
838
+ local,
839
+ );
840
+ _paintSelection (context, effectiveOffset);
841
+ }
840
842
}
841
843
}
842
844
You can’t perform that action at this time.
0 commit comments