mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Fixed smooth scrolling of split panels.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
c6ff13821d
commit
aa601f831b
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user