Skip to content

Commit

Permalink
Fix for browsers that don't work well with CSS transforms
Browse files Browse the repository at this point in the history
Closes #198, closes #199, closes #201
  • Loading branch information
bumbu committed May 30, 2016
1 parent a722daf commit 9ec7e70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/svg-utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ module.exports = {
var that = this
, s = 'matrix(' + matrix.a + ',' + matrix.b + ',' + matrix.c + ',' + matrix.d + ',' + matrix.e + ',' + matrix.f + ')';

element.setAttributeNS(null, 'transform', s);
if ('transform' in element.style) {
element.style.transform = s;
} else if ('-ms-transform' in element.style) {
Expand Down

0 comments on commit 9ec7e70

Please sign in to comment.