Fix scroll over mermaid frame (#21925)
When starting a scroll while the mouse is over a mermaid diagram, the scroll sometimes propagates to the iframe, preventing the parent page from scrolling. Fix this by disabling scroll inside the iframe. This is not a problem because those frames are never meant to scroll. Bug seems to affect Firefox only. 
This commit is contained in:
		
							parent
							
								
									fc7a2d5a95
								
							
						
					
					
						commit
						9ce5e092f3
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -3,7 +3,7 @@ const {mermaidMaxSourceCharacters} = window.config;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const iframeCss = `
 | 
					const iframeCss = `
 | 
				
			||||||
  :root {color-scheme: normal}
 | 
					  :root {color-scheme: normal}
 | 
				
			||||||
  body {margin: 0; padding: 0}
 | 
					  body {margin: 0; padding: 0; overflow: hidden}
 | 
				
			||||||
  #mermaid {display: block; margin: 0 auto}
 | 
					  #mermaid {display: block; margin: 0 auto}
 | 
				
			||||||
`;
 | 
					`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue