We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c625dc0 + 0dcd1c3 commit 3a41f81Copy full SHA for 3a41f81
main.js
@@ -207,11 +207,7 @@ function updateSelection() {
207
const thisNode = code;
208
const fromLine = parseInt(thisNode.getAttribute('data-from-line'), 10);
209
const toLine = parseInt(thisNode.getAttribute('data-to-line'), 10);
210
- if (
211
- (fromLine >= selectedFrom) && (fromLine <= selectedTo)
212
- ||
213
- (toLine >= selectedFrom) && (toLine <= selectedTo)
214
- ) {
+ if ((fromLine <= selectedTo) && (toLine >= selectedFrom)) {
215
code.classList.add('highlight');
216
code.scrollIntoView({ block: 'nearest', inline: 'start' });
217
} else {
0 commit comments