Skip to content
Permalink
Browse files

Scrolling now adjusts MapRenderer zoom

  • Loading branch information...
collinsmith committed May 15, 2019
1 parent 0414472 commit 49122a045d8583d1218341514a6ac5b58bf4b482
Showing with 4 additions and 0 deletions.
  1. +4 −0 tools/src/com/riiablo/map/WallAggregatorTool.java
@@ -260,10 +260,14 @@ public boolean scrolled(int amount) {
case -1:
camera.zoom = MathUtils.clamp(camera.zoom - AMOUNT, 0.01f, 2);
camera.update();
mapRenderer.camera.zoom -= 0.024f;
mapRenderer.camera.update();
break;
case 1:
camera.zoom = MathUtils.clamp(camera.zoom + AMOUNT, 0.01f, 2);
camera.update();
mapRenderer.camera.zoom += 0.024f;
mapRenderer.camera.update();
break;
}
System.out.println(camera.zoom);

0 comments on commit 49122a0

Please sign in to comment.
You can’t perform that action at this time.