fix: repeated input in firefox browser #357

This commit is contained in:
Hufe921
2023-12-06 21:31:37 +08:00
parent bcbd879e0f
commit 6de3ad8b21
@@ -24,7 +24,7 @@ function compositionend(host: CanvasEvent, evt: CompositionEvent) {
if (host.compositionInfo) {
input(evt.data, host)
}
})
}, 1) // 如果为0,火狐浏览器会在input事件之前执行导致重复输入
}
// 移除代理输入框数据
const cursor = draw.getCursor()