mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 15:57:02 +01:00 
			
		
		
		
	No autoscroll when window height is smaller than content
This commit is contained in:
		@@ -1325,6 +1325,7 @@
 | 
				
			|||||||
                has_handled_noscroll = true;
 | 
					                has_handled_noscroll = true;
 | 
				
			||||||
                Materialize.toast('Continue scrolling to read on...', 5000);
 | 
					                Materialize.toast('Continue scrolling to read on...', 5000);
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
 | 
					                if ($(window).height() < $("main .mCSB_container").height()) {
 | 
				
			||||||
                    $("main .mCSB_container").animate({
 | 
					                    $("main .mCSB_container").animate({
 | 
				
			||||||
                        top: -1 * ($("main .mCSB_container").height() - $(window).height())
 | 
					                        top: -1 * ($("main .mCSB_container").height() - $(window).height())
 | 
				
			||||||
                    }, "slow", function () {
 | 
					                    }, "slow", function () {
 | 
				
			||||||
@@ -1332,6 +1333,7 @@
 | 
				
			|||||||
                    });
 | 
					                    });
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        $('#chatcontent').linkify({
 | 
					        $('#chatcontent').linkify({
 | 
				
			||||||
            target: "_blank"
 | 
					            target: "_blank"
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user