1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 17:40:36 +00:00

solmul when mousewheel-scroll

This commit is contained in:
Zeno Rogue 2019-08-17 23:54:27 +02:00
parent 481b1de5f9
commit 52f19a26a8

View File

@ -286,8 +286,8 @@ EX bool smooth_scrolling = false;
EX void handlePanning(int sym, int uni) { EX void handlePanning(int sym, int uni) {
if(mousepan && dual::split([=] { handlePanning(sym, uni); })) return; if(mousepan && dual::split([=] { handlePanning(sym, uni); })) return;
if(GDIM == 3) { if(GDIM == 3) {
if(sym == PSEUDOKEY_WHEELUP) 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 = 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) { if(rug::rugged || smooth_scrolling) {