Refactored Input.js to Events.js

Started working on Input.js, this time it's used to handle mouse clicks and keyboard shortcuts.
This commit is contained in:
unsettledgames
2021-07-20 22:52:51 +02:00
parent 4525519071
commit 1b1290c017
14 changed files with 242 additions and 214 deletions

View File

@@ -18,6 +18,7 @@ const ColorModule = (() => {
animation:100,
filter: ".noshrink",
draggable: ".draggable-colour",
// REFACTOR: Don't touch dragging, simulate a mouseup event instead
onEnd: function() {dragging = false}
});