Commit 21a01f6ac960d773d571b4698ecf75437a391af6
1 parent
39a1e279b1
Exists in
master
and in
1 other branch
fix bug action "OK" control
Showing 1 changed file with 7 additions and 2 deletions Side-by-side Diff
app/scripts/controllers/tshirtdesign.js
... | ... | @@ -19,8 +19,9 @@ |
19 | 19 | alert('in mouse up'); |
20 | 20 | }; |
21 | 21 | //Custom control |
22 | - fabric.Object.prototype.transparentCorners = false; | |
22 | + fabric.Object.prototype.transparentCorners = true; | |
23 | 23 | fabric.Object.prototype.hasRotatingPoint = false; |
24 | + // fabric.Object.prototype.selectable = false; | |
24 | 25 | |
25 | 26 | // fabric.Canvas.prototype.__onMouseDown = function (e) { |
26 | 27 | // // return false; |
... | ... | @@ -54,7 +55,11 @@ |
54 | 55 | mt: { |
55 | 56 | cursor: 'pointer', |
56 | 57 | action: function(e, target) { |
57 | - canvas.deactivateAll().renderAll(); | |
58 | + fabric.Object.prototype.selectable = false; | |
59 | + canvas.deactivateAll(); | |
60 | + $timeout(function(){ | |
61 | + fabric.Object.prototype.selectable = true; | |
62 | + },20); | |
58 | 63 | } |
59 | 64 | }, |
60 | 65 | br: { |