1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

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

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