zulip/static
Tim Abbott 32757b489b message_list: Move scroll-after-reply logic into rendering path.
Since the main autoscroll feature was implemeneted, the
maybe_advance_to_recently_sent_message logic had an unfortunate
structure, where the code for this potentially large scroll was
running AFTER the autoscroll decision was made, but before an actual
scroll could have occurred.

This resulted in code that was very difficult to reason about, as
there were 2 potential sources of scrolling when you send a new
message, with little connection between their implementations either
in location or implementation.

Moving this into the main autoscrolling code path clarifies the code,
with the added benefit of fixing a bug where we would report to the
user that they needed to scroll down when in fact we were just about
to scroll the bottom of the feed into view (via
maybe_advance_to_recently_sent_message).

With this change, we never display the "you need to scroll manually"
message in the cast that we just scrolled you there via selecting a
message.
2019-02-05 16:48:20 -08:00
..
assets Fix favicon generator script. 2018-01-30 10:32:55 -08:00
audio notifications: Add a setting for changing the notification sound. 2018-12-09 21:25:30 -08:00
generated
html HTML validation: Remove xmlns:svg attribute. 2018-07-09 09:45:42 +05:30
icons/fonts tools: Move generate-custom-icon-webfont to a subdirectory. 2018-08-09 15:39:57 -07:00
images portico: Add inspire-hep to /for/open-source. 2019-01-29 11:46:19 -08:00
js message_list: Move scroll-after-reply logic into rendering path. 2019-02-05 16:48:20 -08:00
locale i18n: Sync translation data from Transifex. 2019-01-04 14:42:46 -08:00
styles user status: Style status message in user popover. 2019-02-05 13:42:32 -08:00
templates message edit: Rearrange order of control icons. 2019-02-05 13:42:58 -08:00
third markdown: Disable definition/reference links in marked. 2019-02-04 11:16:37 -08:00
ts webpack: Upgrade webpack version 4.5.0. 2018-04-23 15:49:33 -07:00
.gitignore tools: Move generate-custom-icon-webfont to a subdirectory. 2018-08-09 15:39:57 -07:00
favicon.ico
node_modules