Fixes scrolling and some minor staff.

Signed-off-by: Jiří Župka <jzupka@gmail.com>