mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	POST the pointer location on narrows (since the pointer moves).
Ideally this would be expressed as an event handler bound to the in every place that the pointer changes, but I haven't found a way to do that yet (this is easy for *inputs* but not arbitrary DOM elements). (imported from commit c190e23f5ed5fd3e3a4823b763682d611ec5b446)
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							2bf27af375
						
					
				
				
					commit
					80a47ca2bc
				
			@@ -94,6 +94,7 @@ function narrow(class_name, target_zephyr) {
 | 
			
		||||
    );
 | 
			
		||||
    $("#selected").closest("td").empty();
 | 
			
		||||
    $("#" + target_zephyr).children("td:first").html('<p id="selected">></p>');
 | 
			
		||||
    $.post("update", {pointer: target_zephyr});
 | 
			
		||||
 | 
			
		||||
    // Try to keep the zephyr in the same place on the screen after narrowing.
 | 
			
		||||
    scroll_to_zephyr(target_zephyr, old_top);
 | 
			
		||||
@@ -111,6 +112,7 @@ function narrow_instance(class_name, instance, target_zephyr) {
 | 
			
		||||
    );
 | 
			
		||||
    $("#selected").closest("td").empty();
 | 
			
		||||
    $("#" + target_zephyr).children("td:first").html('<p id="selected">></p>');
 | 
			
		||||
    $.post("update", {pointer: target_zephyr});
 | 
			
		||||
 | 
			
		||||
    // Try to keep the zephyr in the same place on the screen after narrowing.
 | 
			
		||||
    scroll_to_zephyr(target_zephyr, old_top);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user