adjust debugger highlights for scroll position

This commit is contained in:
LenAnderson 2024-07-23 20:28:56 -04:00
parent 590e1e39d8
commit 59c617a7a7

View File

@ -1483,7 +1483,7 @@ export class QuickReply {
hi.classList.add('qr--highlight-secondary');
hi.style.left = `${loc.left - layer.left}px`;
hi.style.width = `${loc.right - loc.left}px`;
hi.style.top = `${loc.top - layer.top}px`;
hi.style.top = `${loc.top - layer.top + syntax.scrollTop}px`;
hi.style.height = `${loc.bottom - loc.top}px`;
syntax.append(hi);
});
@ -1623,7 +1623,7 @@ export class QuickReply {
hi.classList.add('qr--highlight-secondary');
hi.style.left = `${loc.left - layer.left}px`;
hi.style.width = `${loc.right - loc.left}px`;
hi.style.top = `${loc.top - layer.top}px`;
hi.style.top = `${loc.top - layer.top + syntax.scrollTop}px`;
hi.style.height = `${loc.bottom - loc.top}px`;
syntax.append(hi);
});
@ -1680,7 +1680,7 @@ export class QuickReply {
}
hi.style.left = `${loc.left - layer.left}px`;
hi.style.width = `${loc.right - loc.left}px`;
hi.style.top = `${loc.top - layer.top}px`;
hi.style.top = `${loc.top - layer.top + syntax.scrollTop}px`;
hi.style.height = `${loc.bottom - loc.top}px`;
syntax.append(hi);
const isStepping = await this.debugController.awaitContinue();