mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Added mouse event simulation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user