We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c9bbcf commit dd4caadCopy full SHA for dd4caad
lib/src/widgets/proxy.dart
@@ -103,8 +103,9 @@ class RenderEmbedProxy extends RenderProxyBox implements RenderContentProxyBox {
103
104
@override
105
Offset getOffsetForCaret(TextPosition position, Rect? caretPrototype) {
106
- assert(position.offset == 1 || position.offset == 0);
107
- return position.offset == 0
+ assert(
+ position.offset == 1 || position.offset == 0 || position.offset == -1);
108
+ return position.offset <= 0
109
? Offset.zero
110
: Offset(
111
size.width - (caretPrototype == null ? 0 : caretPrototype.width),
0 commit comments