Skip to content

Commit

Permalink
remove throttling from setCTM for now, because it causes problems. Fix
Browse files Browse the repository at this point in the history
…#62, for the third time.
  • Loading branch information
ariutta committed Aug 19, 2014
1 parent 52f36ae commit cc74d6f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svg-pan-zoom",
"version": "2.3.7",
"version": "2.3.8",
"homepage": "https://github.com/ariutta/svg-pan-zoom",
"authors": [
"Andrea Leofreddi <a.leofreddi@itcharm.com>",
Expand Down
6 changes: 3 additions & 3 deletions dist/svg-pan-zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -1079,8 +1079,8 @@ module.exports = {
*/
, setCTM: function(element, matrix, defs) {
var that = this;
// this throttling is intentionally not global
Utils.throttle(function() {
// this throttling causes problems when trying to synchronize the zoom between two different SVGs.
//Utils.throttle(function() {
var s = 'matrix(' + matrix.a + ',' + matrix.b + ',' + matrix.c + ',' + matrix.d + ',' + matrix.e + ',' + matrix.f + ')';
element.setAttributeNS(null, 'transform', s);

Expand All @@ -1097,7 +1097,7 @@ module.exports = {
that.refreshDefsGlobal();
}, that.internetExplorerRedisplayInterval);
}
}, 1000/that.refreshRate)();
//}, 1000/that.refreshRate)();
}

/**
Expand Down
Loading

0 comments on commit cc74d6f

Please sign in to comment.