fix: repeated input in firefox browser #357

pr675
Hufe921 2 years ago
parent bcbd879e0f
commit 6de3ad8b21

@ -24,7 +24,7 @@ function compositionend(host: CanvasEvent, evt: CompositionEvent) {
if (host.compositionInfo) { if (host.compositionInfo) {
input(evt.data, host) input(evt.data, host)
} }
}) }, 1) // 如果为0火狐浏览器会在input事件之前执行导致重复输入
} }
// 移除代理输入框数据 // 移除代理输入框数据
const cursor = draw.getCursor() const cursor = draw.getCursor()

Loading…
Cancel
Save