mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-03 23:37:09 +01:00 
			
		
		
		
	Hide system scrollbar when custom scrollbars is activated
This commit is contained in:
		@@ -56,6 +56,10 @@ body, #overall-main-content {
 | 
			
		||||
  overflow-y: hidden;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
body.custom-scrollbars main {
 | 
			
		||||
  overflow: hidden;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
main {
 | 
			
		||||
  overflow-y: scroll;
 | 
			
		||||
  min-height: calc(100vh - 80px);
 | 
			
		||||
 
 | 
			
		||||
@@ -368,6 +368,7 @@
 | 
			
		||||
                autoHideScrollbar: !showScrollbar,
 | 
			
		||||
                theme: scrollbarTheme
 | 
			
		||||
            });
 | 
			
		||||
            $("body").addClass("custom-scrollbars");
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        if (disabled) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user