add condition for when to update anchor

This commit is contained in:
meganrogge
2022-03-15 17:58:44 -04:00
parent 8ccbef850e
commit 53c432df27
2 changed files with 35 additions and 20 deletions
+1 -1
View File
@@ -563,7 +563,7 @@ function addOverviewRuler() {
term.registerDecoration({marker: term.addMarker(7), overviewRulerOptions: { color: '#8ae234', position: 'center' }});
term.registerDecoration({marker: term.addMarker(7), overviewRulerOptions: { color: '#729fcf', position: 'right' }});
canvas.onRender((e) => {
e.style.left = `${document.querySelector('.xterm-viewport').clientWidth + 5}px`;
e.style.left = `${document.querySelector('.xterm-viewport').clientWidth + 1}px`;
});
}