Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions js/models/event_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ export default class EventHandler {
return;
}
jsTargetLock.lock();

// only update `_target` once dragging is completed
if (this.aladin.view.dragging) {
return;
}

const raDec = [position.ra, position.dec];
this.updateWCS();
// When dragging the view, north to east position angle might changes because
Expand Down Expand Up @@ -128,6 +134,13 @@ export default class EventHandler {
return;
}
jsFovLock.lock();

// only update `_fov` once zooming is compelte
const zoom = this.aladin.view.zoom;
if (zoom.isZooming && fov != zoom.finalZoom) {
return;
}

// fov MUST be cast into float in order to be sent to the model
this.updateWCS();
this.update2AxisFoV();
Expand Down