blockly > Touch > shouldHandleEvent
Touch.shouldHandleEvent() 函数
确定 Blockly 是应该处理还是忽略此事件。鼠标和触摸事件需要特殊检查,因为我们只想一次处理一个触摸流。所有其他事件都应始终得到处理。
Signature:
export declare function shouldHandleEvent(e: Event): boolean;
参数
参数 | 类型 | 说明 |
---|---|---|
e | 事件 | 要检查的事件。 |
返回:
boolean
如果应将此事件传递给注册的处理程序,则为 true;如果应将其屏蔽,则为 false。