From 1cdbeb972a64e1fb12db5dc05fbaa1428e72bb12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Thu, 27 Oct 2011 16:21:01 +0200 Subject: Added screen-wise scrolling for thumbnail mode --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.c') 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; } -- cgit v1.2.3