Zulip 服务器和 Web 应用程序。开源团队聊天可帮助团队保持高效和专注。
Go to file
Tim Abbott 55f606b417 Fix scrolling bug when unnarrowing after receiving a message.
What was happening is that if you un-narrowed immediately after
receiving a message (e.g. because you just sent it), the autoscroll
animation from the zfilt table would still be running after you return
to the home view, resulting in the viewport being scrolled to an
apparently random point in the home view (even though the pointer was
still in the right place).

This cancels the autoscroll animations whenever you do one of:
(1) hashchange (e.g. to go to the settings page)
(2) select a message (covers narrowing/unnarrowing as well as keyboard hotkeys)
(3) mousewheel scroll
since those are basically the cases where we set the viewport
scrolltop directly.

Arguably this should instead be something where we somehow detect
which scroll events are triggered by what and cancel for any scroll
event not from the animation or rererendering, but that seems hard.

(imported from commit f776021303404c87b36241c733b3d1bcb083163b)
2013-04-10 11:02:32 -04:00
api Make the API bindings method for removing subscriptions have the same name we use in our example 2013-04-01 13:05:57 -04:00
assets favicon: Add an 'infinite' favicon for more than 99 messages 2013-02-15 16:18:24 -05:00
bots Check for USER env var before accessing it 2013-03-22 16:20:10 -04:00
certs Add wildcard certificate for *.e.humbughq.com. 2013-01-17 18:56:39 -05:00
confirmation Introduce script to bulk-create activation URIs. 2013-02-28 14:34:18 -05:00
humbug Send test uploads to their own bucket. 2013-04-05 13:07:18 -07:00
node_modules Import Handlebars compiler and dependencies 2013-04-02 14:43:58 -04:00
servers Add nagios check to verify mailchimp is running on staging/app. 2013-04-05 14:44:18 -07:00
templates Update Jenkins integration instructions. 2013-04-05 17:32:41 -04:00
tools Add process-mailchimp-signups-command-line so we can fire and forget this daemon. 2013-04-05 10:22:27 -07:00
zephyr Fix scrolling bug when unnarrowing after receiving a message. 2013-04-10 11:02:32 -04:00
.gitignore gitignore: Add .DS_Store 2013-02-06 16:31:55 -05:00
manage.py chmod +x manage.py 2012-10-25 15:22:18 -04:00