mirror of https://github.com/zulip/zulip.git
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:
parent
fc5287e7ed
commit
ca1dcf222f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue