diff options
Diffstat (limited to 'smallmap_gui.c')
-rw-r--r-- | smallmap_gui.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/smallmap_gui.c b/smallmap_gui.c index dbec6036d..de733d576 100644 --- a/smallmap_gui.c +++ b/smallmap_gui.c @@ -1052,6 +1052,10 @@ static void ExtraViewPortWndProc(Window *w, WindowEvent *e) WP(w, vp_d).scrollpos_x += e->scroll.delta.x << vp->zoom; WP(w, vp_d).scrollpos_y += e->scroll.delta.y << vp->zoom; } break; + + case WE_MOUSEWHEEL: + ZoomInOrOutToCursorWindow(e->wheel.wheel < 0, w); + break; } } |