mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-02 20:36:49 +01:00
adjust debugger highlights for scroll position
This commit is contained in:
parent
590e1e39d8
commit
59c617a7a7
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user