fix: the cursor will flicker one frame to its previous position (#506)
This commit is contained in:
parent
c5ea228b4e
commit
b422187503
1 changed files with 8 additions and 0 deletions
|
|
@ -192,6 +192,14 @@ class _BlockSelectionAreaState extends State<BlockSelectionArea> {
|
|||
});
|
||||
}
|
||||
}
|
||||
} else if (prevBlockRect != null ||
|
||||
prevSelectionRects != null ||
|
||||
prevCursorRect != null) {
|
||||
setState(() {
|
||||
prevBlockRect = null;
|
||||
prevSelectionRects = null;
|
||||
prevCursorRect = null;
|
||||
});
|
||||
}
|
||||
|
||||
WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue