Fixed smooth scrolling of split panels.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2009-09-03 13:02:42 +04:00
parent c6ff13821d
commit aa601f831b

View File

@ -2529,7 +2529,7 @@ do_panel_event (Gpm_Event *event, WPanel *panel, int *redir)
return MOU_NORMAL; return MOU_NORMAL;
} }
if ((event->buttons & GPM_B_DOWN) && (event->type & GPM_DOWN)) { if ((event->buttons & GPM_B_DOWN) && (event->type & GPM_DOWN)) {
if (panel->top_file + lines < panel->count) if (panel->top_file + ITEMS (panel) < panel->count)
next_page (panel); next_page (panel);
else /* We are in last page */ else /* We are in last page */
move_down (panel); move_down (panel);