summaryrefslogtreecommitdiffstats
path: root/commands.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 /commands.c
parent3e2523818b2420a86d71ac7c908ddcbb800abd38 (diff)
downloadnsxiv-1cdbeb972a64e1fb12db5dc05fbaa1428e72bb12.tar.zst
Added screen-wise scrolling for thumbnail mode
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands.c b/commands.c
index b869175..a8b9e77 100644
--- a/commands.c
+++ b/commands.c
@@ -188,7 +188,7 @@ bool i_toggle_animation(arg_t a) {
return true;
}
-bool it_move(arg_t a) {
+bool it_scroll_move(arg_t a) {
direction_t dir = (direction_t) a;
if (mode == MODE_IMAGE)
@@ -197,16 +197,16 @@ bool it_move(arg_t a) {
return tns_move_selection(&tns, dir);
}
-bool i_pan_screen(arg_t a) {
+bool it_scroll_screen(arg_t a) {
direction_t dir = (direction_t) a;
if (mode == MODE_IMAGE)
return img_pan(&img, dir, -1);
else
- return false;
+ return tns_scroll(&tns, dir, true);
}
-bool i_pan_edge(arg_t a) {
+bool i_scroll_to_edge(arg_t a) {
direction_t dir = (direction_t) a;
if (mode == MODE_IMAGE)