mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 20:02:15 +00:00
Stabilize pointer after reply-to clicks..
The reply-to autoscroll was using a flag that was redundant to suppress_scroll_pointer_update and then updating it prematurely, which caused the pointer to move when you clicked on a message to reply to it. Now the pointer goes to the message you replied to. (imported from commit e2f49fd6bd0da9a3f4b58c0eb08192ef0ee9abf0)
This commit is contained in:
@@ -20,8 +20,6 @@ var load_more_enabled = true;
|
||||
// not load_more_messages().
|
||||
var have_scrolled_away_from_top = true;
|
||||
|
||||
var disable_pointer_movement = false;
|
||||
|
||||
// Toggles re-centering the pointer in the window
|
||||
// when Home is next clicked by the user
|
||||
var recenter_pointer_on_display = false;
|
||||
@@ -1124,10 +1122,6 @@ function keep_pointer_in_view() {
|
||||
var candidate;
|
||||
var next_row = current_msg_list.selected_row();
|
||||
|
||||
if (disable_pointer_movement) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (next_row.length === 0)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user