# HG changeset patch # User Alexandre Segura # Date 1487684145 -3600 # Node ID 1670e5e1ed9706f2d578a019e32e72b0e3cb2dd5 # Parent 74cdfdfa9f22eaccd64e3343eeb8f455230e2d60 Fix bug when moving rect shape on zoomed image. diff -r 74cdfdfa9f22 -r 1670e5e1ed97 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);