Ver Fonte

fix exception when stepping backwards through code highlights #3524

Hakim El Hattab há 1 ano atrás
pai
commit
bbd0d3e4f7

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
plugin/highlight/highlight.esm.js


Diff do ficheiro suprimidas por serem muito extensas
+ 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 ) );
 
 				} );
 

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff