bugfix: can't drag select text (#232)

pull/257/head^2
zhaoce 4 years ago committed by GitHub
parent 8d078682c3
commit 31e8198606
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      lib/widgets/raw_editor.dart

@ -490,7 +490,13 @@ class RawEditorState extends EditorState
} }
@override @override
void bringIntoView(TextPosition position) {} void bringIntoView(TextPosition position) {
setState(() {
widget.controller.selection = TextSelection(
baseOffset: widget.controller.selection.baseOffset,
extentOffset: position.offset);
});
}
@override @override
void connectionClosed() { void connectionClosed() {

Loading…
Cancel
Save