Commit a757d535 authored by rockyl's avatar rockyl

修复输入框无法输入的问题

parent ab3b0784
{"id":"engine","url":"engine.3792fc7af6815b498e54518f48fb3d29a80d61f7.js"} {"id":"engine","url":"engine.90b8f75c7c269eab8a9476fee14257118c0828a9.js"}
\ No newline at end of file \ No newline at end of file
...@@ -42,7 +42,9 @@ export const requestAnimationFrame = (function () { ...@@ -42,7 +42,9 @@ export const requestAnimationFrame = (function () {
}; };
} }
return requestAnimationFrame return requestAnimationFrame
}()) }());
const skipTagNames = ['INPUT'];
export class Stage extends Container { export class Stage extends Container {
...@@ -611,6 +613,9 @@ export class Stage extends Container { ...@@ -611,6 +613,9 @@ export class Stage extends Container {
*/ */
private onMouseEvent(e: any): void { private onMouseEvent(e: any): void {
let s: Stage = this; let s: Stage = this;
if (skipTagNames.indexOf(e.target.tagName) >= 0) {
return;
}
//检查mouse或touch事件是否有,如果有的话,就触发事件函数 //检查mouse或touch事件是否有,如果有的话,就触发事件函数
if (EventDispatcher._totalMEC > 0) { if (EventDispatcher._totalMEC > 0) {
let points: any; let points: any;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment