Skip to content

Commit

Permalink
🔥 Fix duplicate resizeChanged event
Browse files Browse the repository at this point in the history
  • Loading branch information
Xen0Xys committed Jul 30, 2024
1 parent a2ff4d4 commit 7148484
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 7148484

Please sign in to comment.