adjust scroll with direction

never noticed the bug but might occur
This commit is contained in:
Boris Faure 2014-06-15 22:49:13 +02:00
parent 7191991aec
commit 92555866ee
1 changed files with 1 additions and 1 deletions

View File

@ -3986,7 +3986,7 @@ termio_scroll(Evas_Object *obj, int direction, int start_y, int end_y)
(sd->scroll > 0))
{
// adjust scroll position for added scrollback
sd->scroll++;
sd->scroll -= direction;
if (sd->scroll > sd->pty->backscroll_num)
sd->scroll = sd->pty->backscroll_num;
}