Bypass the rendering pipeline for highlighting to reduce (eliminate) latency

Fixes #15
This commit is contained in:
Ian Gulliver
2019-07-14 02:26:00 +00:00
parent a4630ba92a
commit f3823812c7
18 changed files with 96 additions and 123 deletions

View File

@@ -196,10 +196,8 @@ class Editor extends List {
case '`':
if (!this.container_.parentElement.xArchObj) {
for (let entry of this.queryEntries('.highlight')) {
entry.getElement().classList.toggle('highlight', false);
entry.setHighlight(false);
}
this.container_.setAttribute('data-arch-refresh', '');
this.container_.setAttribute('data-arch-snapshot', '');
e.stopPropagation();
e.preventDefault();
return;