mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	TOC scrolls smoothly (on readonly), #3911
This commit is contained in:
		
							parent
							
								
									c4a2ff5fa1
								
							
						
					
					
						commit
						331d280075
					
				@ -176,7 +176,7 @@ export default class TocWidget extends RightPanelWidget {
 | 
			
		||||
            const headingElement = $container.find(":header")[headingIndex];
 | 
			
		||||
 | 
			
		||||
            if (headingElement != null) {
 | 
			
		||||
                headingElement.scrollIntoView();
 | 
			
		||||
                headingElement.scrollIntoView({ behavior: "smooth" });
 | 
			
		||||
            }
 | 
			
		||||
        } else {
 | 
			
		||||
            const textEditor = await this.noteContext.getTextEditor();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user