Przeglądaj źródła

fix exception when stepping backwards through code highlights #3524

Hakim El Hattab 1 rok temu
rodzic
commit
bbd0d3e4f7

Plik diff jest za duży
+ 0 - 0
plugin/highlight/highlight.esm.js


Plik diff jest za duży
+ 0 - 0
plugin/highlight/highlight.js


+ 1 - 1
plugin/highlight/plugin.js

@@ -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 ) );
 
 				} );
 

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików