zulip/static
Jessica McKellar 81b493ba0b Change pointer semantic to better support side bar users.
There are now 2 cases for narrowing:

1. We narrowed, but only backwards in time (ie no unread were
read). In this case, try to go back to exactly where we were before
narrowing. This behavior is unchanged.

2. We read some unread messages in a narrow. Instead of going back to
where we were before the narrow, go to our first unread message (or
the bottom of the feed, if there are no unread messages). This is new.

This means that after catching up through the sidebar, on returning
home you'll be at the bottom of your feed.

Searching for the first unread message in a message list with 40,000
messages only takes 17ms according to:

function timeit() {
    var t0 = new Date().getTime();
    _.find(current_msg_list.all(), unread.message_unread);
    var t1 = new Date().getTime();
    console.log('Find first unread: ' + (t1 - t0) + ' ms');
}

(imported from commit 87c467578a2cced0aa976d8ae2924371b85d2445)
2013-12-09 10:41:26 -05:00
..
audio Rename humbug => zulip in audio files. 2013-10-31 15:29:48 -04:00
html Fix link to bootstrap css in our nginx error pages 2013-11-04 16:35:50 -05:00
images Documentation for the Perforce integration 2013-12-06 11:54:38 -05:00
js Change pointer semantic to better support side bar users. 2013-12-09 10:41:26 -05:00
styles Revert "Expand left sidebar when browser is super wide." 2013-12-07 15:28:38 -05:00
templates Align names in group PM list 2013-12-06 17:54:05 -05:00
third Broadcast an event right before and after doing the WebSocket handshake 2013-12-05 16:21:59 -05:00
.gitignore Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00
favicon.ico Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00
robots.txt Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00