Avoid needles updates when using continious scrolling

This commit is contained in:
Dave Davenport 2016-05-10 11:47:32 +02:00
parent bd412b9975
commit 6070826c4d
1 changed files with 5 additions and 2 deletions

View File

@ -888,8 +888,11 @@ static unsigned int rofi_scroll_continious ( RofiViewState * state )
offset = state->filtered_lines - state->menu_lines;
}
}
state->rchanged = TRUE;
scrollbar_set_handle ( state->scrollbar, offset );
if ( offset != state->cur_page ) {
state->rchanged = TRUE;
scrollbar_set_handle ( state->scrollbar, offset );
state->cur_page = offset;
}
return offset;
}