Swapping handles order is prevented

pull/418/head
Xin Yao 4 years ago
parent 2f298c6672
commit 1143f7eb43
  1. 4
      lib/src/widgets/text_selection.dart

@ -407,6 +407,10 @@ class _TextSelectionHandleOverlayState
break;
}
if (newSelection.baseOffset >= newSelection.extentOffset) {
return; // don't allow order swapping.
}
widget.onSelectionHandleChanged(newSelection);
}

Loading…
Cancel
Save