非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。

弃用
This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the 兼容性表格 at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

initMSManipulationEvent method is used to create a MSManipulationEvent that can be called from JavaScript.

This proprietary method is specific to Internet Explorer. Beginning with the Microsoft Edge browser, the initEvent() constructor pattern for synthetic events is deprecated.

句法

MSManipulationEvent.initMSManipulationEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, lastState, currentState);
					

参数

typeArg [in]

类型: DOMString

The type of the event being created.

canBubbleArg [in]

类型: boolean

Indicates whether the event can bubble. When true the event should propagate upward. When false the event does not propagate upward.

cancelableArg [in]

类型: boolean

Indicates whether the event’s default action can be prevented. When true, the default action can be canceled. When false, the default action cannot be canceled.

viewArg [in]

类型: AbstractView

The view in which the event is taking place.

detailArg [in]

类型: 整数

Specifies some detailed information depending upon the event.

lastState [in]

类型: 整数

Indicates the last state of the manipulation event.

currentState [in]

类型: 整数

Indicates the current state of the manipulation event.

返回值

This method does not return a value.

范例

interface MSManipulationEvent extends UIEvent {
    readonly currentState: number;
    readonly inertiaDestinationX: number;
    readonly inertiaDestinationY: number;
    readonly lastState: number;
    initMSManipulationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, lastState: number, currentState: number): void;
    readonly MS_MANIPULATION_STATE_ACTIVE: number;
    readonly MS_MANIPULATION_STATE_CANCELLED: number;
    readonly MS_MANIPULATION_STATE_COMMITTED: number;
    readonly MS_MANIPULATION_STATE_DRAGGING: number;
    readonly MS_MANIPULATION_STATE_INERTIA: number;
    readonly MS_MANIPULATION_STATE_PRESELECT: number;
    readonly MS_MANIPULATION_STATE_SELECTING: number;
    readonly MS_MANIPULATION_STATE_STOPPED: number;
}
					

另请参阅

元数据

  • 最后修改:
  1. MSManipulationEvent
  2. 方法
    1. initMSManipulationEvent()