mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: delay rendering selection(need to be refactored).
This commit is contained in:
parent
397f43cbe1
commit
c7432e640b
@ -60,7 +60,12 @@ class EditorState {
|
||||
for (final op in transaction.operations) {
|
||||
_applyOperation(op);
|
||||
}
|
||||
updateCursorSelection(transaction.afterSelection);
|
||||
// updateCursorSelection(transaction.afterSelection);
|
||||
|
||||
// FIXME: don't use delay
|
||||
Future.delayed(const Duration(milliseconds: 16), () {
|
||||
updateCursorSelection(transaction.afterSelection);
|
||||
});
|
||||
|
||||
if (options.recordUndo) {
|
||||
final undoItem = undoManager.getUndoHistoryItem();
|
||||
|
Loading…
Reference in New Issue
Block a user