zulip/static
Tim Abbott ac7031de3a message_list_view: Add a workaround for Chrome scrolling down bug.
Based on extensive manual testing with print-debugg (the exact
situation here was highly reproducible), in the absence of this line
here or slightly above here, Chrome 64 will consistently trigger an
extra scroll-forward-by-12000-pixels size downward scrolling event
immediately after it finishes rendering the 5th batch of ~100 messages
one gets from hitting the End key in `near:1` narrows.

I don't understand clearly why this change would protect against such
a Chrome bug, but my best guess is that Chrome was doing some sort of
incorrect optimization, and querying the scrollTop was forcing it to
come to a clear conclusion about the scrolling position before
appending more content.

But runs with the scrollTop() line not present in that function show a
scrollTop of around 25K in `append()` just before the call to
`render()`, and 37K at the end; while runs with this scrollTop line
always show 25K both before and after, so it does seem to work.
2018-03-27 13:51:28 -07:00
..
assets Fix favicon generator script. 2018-01-30 10:32:55 -08:00
audio
generated
html static/html/5xx.html: Clean up to use 4 space indentation. 2018-01-27 23:06:58 +05:30
icons/fonts Generate custom-icon-webfont on each provision or update-prod-static. 2017-11-20 16:36:49 -08:00
images webhooks: Add Dialogflow integration. 2018-03-24 15:03:35 -02:30
js message_list_view: Add a workaround for Chrome scrolling down bug. 2018-03-27 13:51:28 -07:00
locale i18n: Update translations data from transifex. 2018-03-02 08:57:37 -08:00
styles css: Apply the CSS for `!!! tip` syntax to integrations. 2018-03-25 08:58:08 -07:00
swagger docs: Update links from codebase to point to ReadTheDocs. 2017-11-16 10:53:49 -08:00
templates stream create: Make docs open in another tab. 2018-03-25 10:21:44 -07:00
third markdown: Require double-asterisk around all mentions. 2018-02-16 11:45:08 -08:00
ts Add typescript support to asset compilation. 2017-05-28 17:28:28 -07:00
.gitignore i18n: Make Git ignore mobile.json resources. 2018-01-29 12:49:51 -08:00
favicon.ico
node_modules