From 4b0f5ed786691487bcbb1d4a328feabdd8f30570 Mon Sep 17 00:00:00 2001
From: echicken <>
Date: Tue, 5 May 2020 02:18:09 +0000
Subject: [PATCH] Only do mouse things if left click (button 0, press true)

---
 xtrn/lemons/level.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xtrn/lemons/level.js b/xtrn/lemons/level.js
index be4a8df68e..3f76fee35d 100644
--- a/xtrn/lemons/level.js
+++ b/xtrn/lemons/level.js
@@ -970,7 +970,7 @@ var Level = function (l, n) {
 
 		if (userInput.mouse !== null) {
 			// If it wasn't a left-click
-			if (userInput.mouse.button != 0) return ret;
+			if (userInput.mouse.button != 0 && !userInput.mouse.press) return ret;
 			// If they clicked inside the statusbar region ...
 			if (userInput.mouse.y >= frames.statusBar.y && userInput.mouse.y <= frames.statusBar.y + 1) {
 				if (userInput.mouse.x < frames.labels[KEY_BOMB].x) {
-- 
GitLab