Added mouse event simulation

This commit is contained in:
unsettledgames
2021-07-22 15:18:46 +02:00
parent 4e85ad1a73
commit b959a70f55
3 changed files with 65 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ const ColorModule = (() => {
filter: ".noshrink",
draggable: ".draggable-colour",
// REFACTOR: Don't touch dragging, simulate a mouseup event instead
onEnd: function() {dragging = false}
onEnd: function() {Events.simulateMouseEvent(window, "mouseup");}
});
/** Changes all of one color to another after being changed from the color picker