fix(web): reduce page jitter on browsers that support overlay scrollbar (#21850)
Reduce jitter caused by the presence or absence of scrollbars in page switching --- Ref [scrollbar-gutter | MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-gutter) https://user-images.githubusercontent.com/45708948/165972251-7d5a5017-f76d-4ba2-9106-a224b3ee521f.mp4
This commit is contained in:
		
							parent
							
								
									d084ce306a
								
							
						
					
					
						commit
						9eb9cf5153
					
				|  | @ -222,6 +222,13 @@ body { | |||
|   overflow-wrap: break-word; | ||||
| } | ||||
| 
 | ||||
| @supports (overflow: overlay) { | ||||
|   body { | ||||
|     overflow: overlay; | ||||
|     scrollbar-gutter: stable; | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| img { | ||||
|   border-radius: 3px; | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue