Skip to content
This repository has been archived by the owner on Aug 26, 2019. It is now read-only.

Commit

Permalink
Fixed #254: Shift click bug
Browse files Browse the repository at this point in the history
Shift click alert no longer appears when moving elements.
  • Loading branch information
zoemcl committed Jul 21, 2017
1 parent c613d54 commit fe7bb60
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/nn/squarenote/squarenoteinteraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ Toe.View.SquareNoteInteraction.prototype.handleEdit = function(e) {
gui.removeEditSubControls();

// Listen for object events.
gui.rendEng.canvas.observe('object:modified', function(aObject) {gui.handleEventObjectModified(gui, aObject);});
gui.rendEng.canvas.observe('object:modified', function(aObject) {
console.log(aObject);
if(!(aObject.target.eleRef)) {
gui.handleEventObjectModified(gui, aObject);
}
});
gui.rendEng.canvas.observe('object:moving', function(e) {gui.objMoving = true;});
gui.rendEng.canvas.observe('object:selected', function(aObject) {
var e = aObject.e;
Expand Down

0 comments on commit fe7bb60

Please sign in to comment.