Browse Source

Stop panning on middle mouse up, even if the mouse is out of the world

master
Fen Dweller 5 years ago
parent
commit
0d00764f1c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      macrovision.js

+ 1
- 1
macrovision.js View File

@@ -2161,7 +2161,7 @@ document.addEventListener("DOMContentLoaded", () => {
} }
}); });


document.querySelector("#world").addEventListener("mouseup", e => {
document.addEventListener("mouseup", e => {
if (e.which == 2) { if (e.which == 2) {
panning = false; panning = false;
Object.keys(entities).forEach(key => { Object.keys(entities).forEach(key => {


Loading…
Cancel
Save