From a50e4a2b604cdf8bb0dcc4c12037a2e0405bf94d Mon Sep 17 00:00:00 2001 From: luboslenco Date: Mon, 27 Apr 2020 16:15:35 +0200 Subject: [PATCH] 2d view pan shortcut --- Sources/arm/ui/UIView2D.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/arm/ui/UIView2D.hx b/Sources/arm/ui/UIView2D.hx index a527475e..f84932c4 100644 --- a/Sources/arm/ui/UIView2D.hx +++ b/Sources/arm/ui/UIView2D.hx @@ -256,7 +256,7 @@ class UIView2D { return; } - if (mouse.down("right") || mouse.down("middle")) { + if (mouse.down("right") || mouse.down("middle") || (mouse.down("left") && kb.down("alt"))) { panX += mouse.movementX; panY += mouse.movementY; }