Browse Source

fix: close context menu while scrolling (#4763)

Nivedin 3 weeks ago
parent
commit
4200b00c04
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/hoppscotch-common/src/composables/codemirror.ts

+ 2 - 2
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()
           }
         },
       }),