mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	message_scroll: Don't process msg scroll events in non-message views.
This commit is contained in:
		@@ -133,8 +133,12 @@ export function initialize() {
 | 
			
		||||
    $(document).on(
 | 
			
		||||
        "scroll",
 | 
			
		||||
        _.throttle(() => {
 | 
			
		||||
            if (message_lists.current === undefined) {
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            unread_ops.process_visible();
 | 
			
		||||
            message_lists.current?.view.update_sticky_recipient_headers();
 | 
			
		||||
            message_lists.current.view.update_sticky_recipient_headers();
 | 
			
		||||
            scroll_finish();
 | 
			
		||||
        }, 50),
 | 
			
		||||
    );
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user