diff --git a/js/models/event_handler.js b/js/models/event_handler.js index 86815224..263f0fcc 100644 --- a/js/models/event_handler.js +++ b/js/models/event_handler.js @@ -165,17 +165,7 @@ export default class EventHandler { }); this.aladin.on("projectionChanged", () => { - this.model.set("_wcs", this.aladin.getViewWCS()); - this.model.save_changes(); - }); - - this.aladin.on("resizeChanged", () => { - this.model.set("_wcs", this.aladin.getViewWCS()); - const fov_xy = this.aladin.getFov(); - this.model.set("_fov_xy", { - x: fov_xy[0], - y: fov_xy[1], - }); + this.updateWCS(); this.model.save_changes(); });