We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b498315 commit d79c1d1Copy full SHA for d79c1d1
packages/plugin-block/src/block-service.ts
@@ -166,7 +166,7 @@ export class BlockService {
166
}
167
168
/// @internal
169
- #mousemoveCallback = (view: EditorView, event: MouseEvent) => {
+ #mousemoveCallback = debounce((view: EditorView, event: MouseEvent) => {
170
if (!view.editable)
171
return
172
@@ -192,14 +192,14 @@ export class BlockService {
192
193
194
this.#show(result)
195
- }
+ }, 20)
196
197
198
mousemoveCallback = (view: EditorView, event: MouseEvent) => {
199
if (view.composing || !view.editable)
200
return false
201
202
- debounce(this.#mousemoveCallback, 20)(view, event)
+ this.#mousemoveCallback(view, event)
203
204
205
0 commit comments