From 0d00764f1c9c2449b5e6ab2e7eb0978a077cbcde Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Thu, 18 Jun 2020 10:27:28 -0400 Subject: [PATCH] Stop panning on middle mouse up, even if the mouse is out of the world --- macrovision.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macrovision.js b/macrovision.js index f8c1827b..4e17bf08 100644 --- a/macrovision.js +++ b/macrovision.js @@ -2161,7 +2161,7 @@ document.addEventListener("DOMContentLoaded", () => { } }); - document.querySelector("#world").addEventListener("mouseup", e => { + document.addEventListener("mouseup", e => { if (e.which == 2) { panning = false; Object.keys(entities).forEach(key => {