summaryrefslogtreecommitdiffstats
path: root/image.h
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2017-10-04 18:12:27 +0200
committerBert Münnich <ber.t@posteo.de>2017-10-04 18:22:43 +0200
commite310136e02ada4862c250280034d36fbfa24fc61 (patch)
tree496db891475c1b9670ab49e5f025012d05f4b37a /image.h
parent9b6acc781e3fc2994bde60db397cfd82e2e050d1 (diff)
downloadnsxiv-e310136e02ada4862c250280034d36fbfa24fc61.tar.zst
Mouse drag translates pointer position to image area
This makes mouse panning more direct and faster.
Diffstat (limited to 'image.h')
-rw-r--r--image.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/image.h b/image.h
index 2813c9b..37bc4a2 100644
--- a/image.h
+++ b/image.h
@@ -80,6 +80,7 @@ bool img_zoom(img_t*, float);
bool img_zoom_in(img_t*);
bool img_zoom_out(img_t*);
+bool img_pos(img_t*, float, float);
bool img_move(img_t*, float, float);
bool img_pan(img_t*, direction_t, int);
bool img_pan_edge(img_t*, direction_t);