message_viewport: Remove unused parameter from in_view function.

This commit is contained in:
Lalit
2024-01-20 14:56:24 +05:30
committed by Tim Abbott
parent d4a4e2df3a
commit 82841a7b5f

View File

@@ -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;