Skip to content
Snippets Groups Projects
Commit edb526c6 authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

mouseout event

parent a03cb89e
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,8 @@ ThreeView = Backbone.View.extend({
events: {
"mousemove": "_mouseMoved",
"mouseup": "_mouseUp",
"mousedown": "_mouseDown"
"mousedown": "_mouseDown",
"mouseout": "_mouseOut"
},
mouseIsDown: false,//store state of mouse click inside this el
......@@ -78,6 +79,11 @@ ThreeView = Backbone.View.extend({
this.controls.enabled = !state;
},
_mouseOut: function(){
this._setNoCellIntersections();
this._setNoPartIntersections();
},
_mouseUp: function(){
this.mouseIsDown = false;
this._addRemoveVoxel(!this.appState.get("deleteMode"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment