mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01: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];
 | 
					            const headingElement = $container.find(":header")[headingIndex];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (headingElement != null) {
 | 
					            if (headingElement != null) {
 | 
				
			||||||
                headingElement.scrollIntoView();
 | 
					                headingElement.scrollIntoView({ behavior: "smooth" });
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            const textEditor = await this.noteContext.getTextEditor();
 | 
					            const textEditor = await this.noteContext.getTextEditor();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user