Added screen-wise scrolling for thumbnail mode

This commit is contained in:
Bert Münnich
2011-10-27 16:21:01 +02:00
parent 3e2523818b
commit 1cdbeb972a
9 changed files with 55 additions and 42 deletions

3
main.c
View File

@ -394,7 +394,8 @@ void on_buttonpress(XButtonEvent *bev) {
break;
case Button4:
case Button5:
if (tns_scroll(&tns, bev->button == Button4 ? DIR_UP : DIR_DOWN))
if (tns_scroll(&tns, bev->button == Button4 ? DIR_UP : DIR_DOWN,
(bev->state & ControlMask) != 0))
redraw();
break;
}