diff options
Diffstat (limited to 'main_gui.c')
-rw-r--r-- | main_gui.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main_gui.c b/main_gui.c index 2e0653de9..23c9523ce 100644 --- a/main_gui.c +++ b/main_gui.c @@ -2329,6 +2329,10 @@ static void MainWindowWndProc(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; } } |