fix: close context menu while scrolling (#4763)
This commit is contained in:
parent
bb36d32359
commit
4200b00c04
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
}
|
||||
},
|
||||
}),
|
||||
|
|
|
|||
Loading…
Reference in a new issue