zulip/static
Steve Howell b3594c984a message scrolling: Fix "Scroll down to view" warning.
We recently added a feature to warn users that they
may need to scroll down to view messages that they
just sent, but it was broken due to various complexities
in the rendering code path.

Now we compute it a bit more rigorously.

It requires us to pass some info about rendering up
and down the stack, which is why it's kind of a long
commit, but the bulk of the logic is in these JS files:

    * message_list_view.js
    * notifications.js

I choose to pass structs around instead of booleans,
because I anticipate we may eventually add more metadata
about rendering to it, plus bools are just kinda brittle.
(The exceptions are that `_maybe_autoscroll`, which
is at the bottom of the stack, just passes back a simple
boolean, and `notify_local_mixes`, also at the bottom
of the stack, just accepts a simple boolean.)

This errs on the side of warning the user, even if the
new message is partially visible.

Fixes #11138
2019-01-07 17:17:55 -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 digest: Fix the styling of /digest page. 2019-01-07 13:09:29 -08:00
js message scrolling: Fix "Scroll down to view" warning. 2019-01-07 17:17:55 -08:00
locale i18n: Sync translation data from Transifex. 2019-01-04 14:42:46 -08:00
styles digest: Fix the styling of /digest page. 2019-01-07 13:09:29 -08:00
templates compose: Add support for using Zoom as the video chat provider. 2019-01-07 10:00:02 -08:00
third third: Extract bootstrap typeahead to its own module. 2018-12-17 09:06:52 -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