Skip to content

Commit

Permalink
fix: clear zoom history and hide filter options panel when apply FFT (#…
Browse files Browse the repository at this point in the history
…2947)

close #2923
  • Loading branch information
hamed-musallam committed Mar 6, 2024
1 parent acce39e commit e7fb21f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/component/reducer/actions/FiltersActions.ts
Expand Up @@ -741,6 +741,8 @@ function handleApplyFFTFilter(draft: Draft<State>) {

//clear zoom history
draft.zoom.history[draft.view.spectra.activeTab] = [];
//hide filter options panel
draft.toolOptions.selectedOptionPanel = null;
}
}

Expand All @@ -766,6 +768,11 @@ function handleApplyFFtDimension1Filter(draft: Draft<State>) {
updateView(draft, fftDimension1.DOMAIN_UPDATE_RULES);
}
}
//clear zoom history
draft.zoom.history[draft.view.spectra.activeTab] = [];

//hide filter options panel
draft.toolOptions.selectedOptionPanel = null;
}

function handleApplyFFtDimension2Filter(draft: Draft<State>) {
Expand All @@ -790,6 +797,11 @@ function handleApplyFFtDimension2Filter(draft: Draft<State>) {
updateView(draft, fftDimension2.DOMAIN_UPDATE_RULES);
}
}
//clear zoom history
draft.zoom.history[draft.view.spectra.activeTab] = [];

//hide filter options panel
draft.toolOptions.selectedOptionPanel = null;
}

//action
Expand Down

0 comments on commit e7fb21f

Please sign in to comment.