aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@gmx.com>2011-10-27 16:21:01 +0200
committerBert Münnich <ber.t@gmx.com>2011-10-27 16:21:01 +0200
commit1cdbeb972a64e1fb12db5dc05fbaa1428e72bb12 (patch)
tree9e0d12081ff6f8b9708422f10e0f3e1047ccf6ae /main.c
parent3e2523818b2420a86d71ac7c908ddcbb800abd38 (diff)
Added screen-wise scrolling for thumbnail mode
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 97dd2db..22729e9 100644
--- a/main.c
+++ b/main.c
@@ -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;
}