Fix bug when moving rect shape on zoomed image.
authorAlexandre Segura <mex.zktk@gmail.com>
Tue, 21 Feb 2017 14:35:45 +0100
changeset 332 1670e5e1ed97
parent 331 74cdfdfa9f22
child 333 625ac8b8bb87
Fix bug when moving rect shape on zoomed image.
src_js/iconolab-bundle/src/components/editor/ShapeRect.vue
--- a/src_js/iconolab-bundle/src/components/editor/ShapeRect.vue	Tue Feb 21 14:35:19 2017 +0100
+++ b/src_js/iconolab-bundle/src/components/editor/ShapeRect.vue	Tue Feb 21 14:35:45 2017 +0100
@@ -58,6 +58,7 @@
                     if (self.isResizing) { return; }
 
                     var snapInvMatrix = this.transform().diffMatrix.invert();
+                    snapInvMatrix.e = snapInvMatrix.f = 0;
                     var tdx = snapInvMatrix.x(dx, dy);
                     var tdy = snapInvMatrix.y(dx, dy);