diff --git a/app/src/search/util.ts b/app/src/search/util.ts index ca15db2e9..dddf7db84 100644 --- a/app/src/search/util.ts +++ b/app/src/search/util.ts @@ -756,7 +756,7 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, clo openFileById({ app, id, - action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT], + action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS, Constants.CB_GET_SCROLL], zoomIn: foldResponse.data, position: "right" }); @@ -796,7 +796,7 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, clo openFileById({ app, id, - action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT], + action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS, Constants.CB_GET_SCROLL], zoomIn: foldResponse.data }); if (closeCB) { @@ -855,7 +855,7 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, clo app, id, position: "right", - action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT], + action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS, Constants.CB_GET_SCROLL], zoomIn: foldResponse.data }); if (closeCB) { @@ -884,7 +884,7 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, clo openFileById({ app, id, - action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT], + action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS, Constants.CB_GET_SCROLL], zoomIn: foldResponse.data }); if (closeCB) {