mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 19:13:53 +00:00
message_viewport: Remove unused parameter from in_view function.
This commit is contained in:
@@ -461,10 +461,10 @@ export function keep_pointer_in_view() {
|
||||
function adjust(in_view, get_next_row) {
|
||||
// return true only if we make an actual adjustment, so
|
||||
// that we know to short circuit the other direction
|
||||
if (in_view($next_row)) {
|
||||
if (in_view()) {
|
||||
return false; // try other side
|
||||
}
|
||||
while (!in_view($next_row)) {
|
||||
while (!in_view()) {
|
||||
$candidate = get_next_row($next_row);
|
||||
if ($candidate.length === 0) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user