mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 01:47:41 +00:00
When you make a call to set_message_position(), you already know that the pointer is gonna be onscreen, so set the flag to suppress scroll pointer updates. This should be faster and also avoid future confusing bugs where recenter_view() and keep_pointer_in_view() run for the same event. (Both callers to recenter_view pass in the selected message, and then the calls to set_message_position() set the scrollTop so that the selected message shows onscreen.) (imported from commit f1a6f189b7899b280a6316ea7eb03f015d3d4ae3)
3.1 KiB
3.1 KiB