From 8364ca6b17189832aadbc7e4110c550155b2b81c Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 12 Jan 2020 11:19:24 -0500 Subject: [PATCH] Fixed #1340 --- core/src/mindustry/editor/MapView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/editor/MapView.java b/core/src/mindustry/editor/MapView.java index 6787f418ab..f2d5b45dbd 100644 --- a/core/src/mindustry/editor/MapView.java +++ b/core/src/mindustry/editor/MapView.java @@ -189,7 +189,7 @@ public class MapView extends Element implements GestureListener{ lastTool = null; } - if(ui.editor.hasPane()) return; + if(Core.scene.getScrollFocus() != this) return; zoom += Core.input.axis(KeyCode.SCROLL) / 10f * zoom; clampZoom();