diff --git a/packages/hoppscotch-common/src/composables/codemirror.ts b/packages/hoppscotch-common/src/composables/codemirror.ts index 7aa5b1f4..42a8690a 100644 --- a/packages/hoppscotch-common/src/composables/codemirror.ts +++ b/packages/hoppscotch-common/src/composables/codemirror.ts @@ -358,8 +358,8 @@ export function useCodemirror( view.requestMeasure() if (event.target && options.contextMenuEnabled) { - // Debounce to make the performance better - debouncedTextSelection(30)() + // close the context menu when the editor is scrolled + closeContextMenu() } }, }),