From 714848466aa540cadc9e80e28339f9cc2c91b2df Mon Sep 17 00:00:00 2001 From: Xen0Xys Date: Tue, 30 Jul 2024 11:34:04 +0200 Subject: [PATCH] :fire: Fix duplicate resizeChanged event --- js/models/event_handler.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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(); });