mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
Do not try to recenter if you were already moving in the right direction.
Before this commit, if you try to arrow around when the selected message is outside the pointer threshold for recentering, you get a big jump, even if you are arrowing towards the center of the viewport. (imported from commit 5c15d5ccccdf027a8bfa8b79bf519fccbfa971d8)
This commit is contained in:
@@ -617,6 +617,7 @@ $(function () {
|
||||
// scroll handler, but when we're at the top or bottom of the
|
||||
// page, the pointer may still need to move.
|
||||
move_pointer_at_page_top_and_bottom(delta);
|
||||
last_viewport_movement_direction = delta;
|
||||
});
|
||||
|
||||
$(window).mousewheel(function (e, delta) {
|
||||
|
||||
Reference in New Issue
Block a user