Don't allow the top of the pointer to be past the 2/3 mark.

Given that we now look at the top of the pointer rather than the
bottom for this check, our previous 4/5 number was far too permissive
(and led to your selected message often getting covered up by the
compose window).

Anecdotally, this feels a bit better to me.

(imported from commit 39ca7924db56272f7e623708ce0125b2a7012656)
This commit is contained in:
Waseem Daher 2012-10-16 11:30:07 -04:00
parent fc5287e7ed
commit ca1dcf222f
1 changed files with 2 additions and 2 deletions

View File

@ -87,8 +87,8 @@ function above_view_threshold(message, useTop) {
function below_view_threshold(message) {
// Barnowl-style thresholds: the top of the pointer is never below
// the 4/5-mark.
return message.offset().top > viewport.scrollTop() + viewport.height() * 4 / 5;
// the 2/3-mark.
return message.offset().top > viewport.scrollTop() + viewport.height() * 2 / 3;
}
function recenter_view(message) {