mirror of
https://github.com/youfoundjk/TeXcore.git
synced 2026-07-22 07:33:31 +00:00
fix flickering when typing outside the live render
This commit is contained in:
parent
57f99e33fd
commit
096e18bd3c
1 changed files with 3 additions and 3 deletions
|
|
@ -222,8 +222,7 @@ class RowLayoutWidget extends WidgetType {
|
|||
eq(other: RowLayoutWidget) {
|
||||
return this.widths.join("|") === other.widths.join("|") &&
|
||||
this.columnsMarkdown.join("---") === other.columnsMarkdown.join("---") &&
|
||||
this.sourcePath === other.sourcePath &&
|
||||
this.startPos === other.startPos;
|
||||
this.sourcePath === other.sourcePath;
|
||||
}
|
||||
|
||||
toDOM() {
|
||||
|
|
@ -274,8 +273,9 @@ class RowLayoutWidget extends WidgetType {
|
|||
if (view) {
|
||||
evt.preventDefault();
|
||||
evt.stopPropagation();
|
||||
const pos = view.posAtDOM(rowEl);
|
||||
view.dispatch({
|
||||
selection: { anchor: this.startPos },
|
||||
selection: { anchor: pos },
|
||||
scrollIntoView: true
|
||||
});
|
||||
view.focus();
|
||||
|
|
|
|||
Loading…
Reference in a new issue