From 52f19a26a8a4f23fb7e630142d437dae2f81452d Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 17 Aug 2019 23:54:27 +0200 Subject: [PATCH] solmul when mousewheel-scroll --- control.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control.cpp b/control.cpp index ef9bb882..ce3e7e84 100644 --- a/control.cpp +++ b/control.cpp @@ -286,8 +286,8 @@ EX bool smooth_scrolling = false; EX void handlePanning(int sym, int uni) { if(mousepan && dual::split([=] { handlePanning(sym, uni); })) return; if(GDIM == 3) { - if(sym == PSEUDOKEY_WHEELUP) View = cpush(2, -0.05*shiftmul) * View, didsomething = true, playermoved = false; - if(sym == PSEUDOKEY_WHEELDOWN) View = cpush(2, 0.05*shiftmul) * View, didsomething = true, playermoved = false; + if(sym == PSEUDOKEY_WHEELUP) View = solmul(cpush(2, -0.05*shiftmul), View), didsomething = true, playermoved = false; + if(sym == PSEUDOKEY_WHEELDOWN) View = solmul(cpush(2, 0.05*shiftmul), View), didsomething = true, playermoved = false; } if(rug::rugged || smooth_scrolling) {