Commit 5d5b9c08 authored by Arne Johanson's avatar Arne Johanson

fixed zoom sync

parent f8148af8
...@@ -779,11 +779,13 @@ CanvasDataPlotGroup.prototype.setSyncViews = function(sync, translateX, translat ...@@ -779,11 +779,13 @@ CanvasDataPlotGroup.prototype.setSyncViews = function(sync, translateX, translat
if(this.lastZoomedPlot) { if(this.lastZoomedPlot) {
var xDomain = this.lastZoomedPlot.getXDomain(); var xDomain = this.lastZoomedPlot.getXDomain();
var yDomain = this.lastZoomedPlot.getYDomain(); var yDomain = this.lastZoomedPlot.getYDomain();
this.plots.forEach(function(p) { this.plots.forEach((function(p) {
if(p != this.lastZoomedPlot) { 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 { else {
this.fitDataInViews(); this.fitDataInViews();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment