fix exception when stepping backwards through code highlights #3524

This commit is contained in:
Hakim El Hattab committed 2023-11-13 11:26:29 +01:00
1 parent 3d7d3152a4
commit bbd0d3e4f7
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -138,7 +138,7 @@ const Plugin = {
// Scroll highlights into view as we step through them
fragmentBlock.addEventListener( 'visible', Plugin.scrollHighlightedLineIntoView.bind( Plugin, fragmentBlock, scrollState ) );
fragmentBlock.addEventListener( 'hidden', Plugin.scrollHighlightedLineIntoView.bind( Plugin, fragmentBlock.previousSibling, scrollState ) );
fragmentBlock.addEventListener( 'hidden', Plugin.scrollHighlightedLineIntoView.bind( Plugin, fragmentBlock.previousElementSibling, scrollState ) );
} );