mouse wheel: move camera, not object v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sat, 02 Dec 2023 19:33:31 +0100
branchv_0
changeset 9 53ba7e52c67c
parent 8 80ad08521091
child 10 8382173bfc35
mouse wheel: move camera, not object
Shark.cpp
--- a/Shark.cpp	Sat Dec 02 15:43:51 2023 +0100
+++ b/Shark.cpp	Sat Dec 02 19:33:31 2023 +0100
@@ -175,8 +175,8 @@
 							<< " button=" << xev.xbutton.button
 							<< std::endl;
 					if (xev.xbutton.button == 1);
-					else if (xev.xbutton.button == 4) ctx.adjustFov(+1.0);
-					else if (xev.xbutton.button == 5) ctx.adjustFov(-1.0);
+					else if (xev.xbutton.button == 4) ctx.adjustFov(-1.0);
+					else if (xev.xbutton.button == 5) ctx.adjustFov(+1.0);
 					else if (xev.xbutton.button == 8) resetView();
 					else if (xev.xbutton.button == 9) keepRunningX11 = false;
 					redraw = true;