Skip to content

Commit

Permalink
finally fixed sharing the zoom scale across #image_rectangle elements
Browse files Browse the repository at this point in the history
  • Loading branch information
jvo203 committed Jan 29, 2019
1 parent 0cbb7f4 commit 6d46318
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions htdocs/fitswebql/fitswebql.js
Original file line number Diff line number Diff line change
Expand Up @@ -7470,7 +7470,7 @@ function setup_image_selection_index(index, topx, topy, img_width, img_height) {
}
});

zoom.scaleTo(rect, zoom_scale);
zoom.scaleTo(rect, zoom_scale);
}

function setup_image_selection() {
Expand Down Expand Up @@ -8680,7 +8680,8 @@ function tiles_zoomed() {
refresh_tiles(i);

//keep zoom scale in sync across all images
d3.select("#image_rectangle" + i).__zoom = zoom_scale;
var elem = d3.select("#image_rectangle" + i);
elem.node().__zoom.k = zoom_scale;
}

var tmp = d3.select(this);
Expand Down

0 comments on commit 6d46318

Please sign in to comment.