mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	[staging] Double-clicking on stream row toggles its zoom level.
If you double-click on a stream that you've narrowed to, it will either zoom in or zoom out the left sidebar view. Zooming in shows just that stream; zooming out shows all streams. This is feature flagged to staging only. (imported from commit 6fdb3cacd68635f313f2a8a81edf2d6101cce2cb)
This commit is contained in:
		@@ -443,6 +443,21 @@ $(function () {
 | 
			
		||||
        previous_sort_order = undefined;
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    $('#stream_filters').on('dblclick', 'li .subscription_block', function (e) {
 | 
			
		||||
        if (!feature_flags.topic_zooming) {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        var stream = $(e.target).parents('li').attr('data-name');
 | 
			
		||||
 | 
			
		||||
        if (stream === active_stream_name()) {
 | 
			
		||||
            toggle_zoom();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        e.preventDefault();
 | 
			
		||||
        e.stopPropagation();
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    $('#stream_filters').on('click', 'li .subscription_block', function (e) {
 | 
			
		||||
        if (e.metaKey || e.ctrlKey) {
 | 
			
		||||
            return;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user