Skip to content
Snippets Groups Projects
Commit 5d5b9c08 authored by Arne Johanson's avatar Arne Johanson
Browse files

fixed zoom sync

parent f8148af8
No related branches found
No related tags found
No related merge requests found
......@@ -779,11 +779,13 @@ CanvasDataPlotGroup.prototype.setSyncViews = function(sync, translateX, translat
if(this.lastZoomedPlot) {
var xDomain = this.lastZoomedPlot.getXDomain();
var yDomain = this.lastZoomedPlot.getYDomain();
this.plots.forEach(function(p) {
this.plots.forEach((function(p) {
if(p != this.lastZoomedPlot) {
p.updateDomains(xDomain, yDomain, false);
p.updateDomains(this.syncTranslateX ? xDomain : p.getXDomain(),
this.syncTranslateY ? yDomain : p.getYDomain(),
false);
}
});
}).bind(this));
}
else {
this.fitDataInViews();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment