mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 15:57:02 +01:00 
			
		
		
		
	Scroll sidebar in case if the channel is not in view
This commit is contained in:
		@@ -663,6 +663,9 @@
 | 
			
		||||
        if (selected_channel != channel_id && guild_channels[channel_id] && guild_channels[channel_id].read) {
 | 
			
		||||
            if (animate_it) {
 | 
			
		||||
                $("#guild-btn").sideNav("show");
 | 
			
		||||
                if (!element_in_view($("#channel-"+channel_id), true)) {
 | 
			
		||||
                    $("#guild-nav").animate({ scrollTop: $(document).height() }, "fast");
 | 
			
		||||
                }
 | 
			
		||||
                flashElement($("#channel-"+channel_id));
 | 
			
		||||
                setTimeout(function () {
 | 
			
		||||
                    $("#guild-btn").sideNav("hide");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user