Skip to content

Commit

Permalink
🔥 Fix duplicate resizeChanged event
Browse files Browse the repository at this point in the history
  • Loading branch information
Xen0Xys authored and ManonMarchand committed Jul 31, 2024
1 parent c9c75af commit fd78b1a
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions js/models/event_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand Down

0 comments on commit fd78b1a

Please sign in to comment.