interfaceTouch { readonlyclientX: number readonlyclientY: number readonlyforce: number readonlyidentifier: number readonlypageX: number readonlypageY: number readonlyradiusX: number readonlyradiusY: number readonlyrotationAngle: number readonlyscreenX: number readonlyscreenY: number readonlytarget: EventTarget }
interfaceTouchInit { altitudeAngle?: number azimuthAngle?: number clientX?: number clientY?: number force?: number identifier: number pageX?: number pageY?: number radiusX?: number radiusY?: number rotationAngle?: number screenX?: number screenY?: number target: EventTarget touchType?: TouchType }
focus A -> focusin A -> blur A -> focusout A -> focus B -> focusin B
鼠标事件顺序
指针设备移入 A 元素后移出
mouseover A -> mouseenter A -> mousemove A -> mouseout A -> mouseleave A
指针设备移入 A 元素后移入 B 元素后移出,其中 B 元素为 A 元素的子元素
mouseover A -> mouseenter A -> mousemove A -> mouseout A -> mouseover B -> mouseenter B -> mousemove B -> mouseout B -> mouseleave B -> mouseover A -> mousemove A -> mouseout A -> mouseleave A
指针设备移入 C 元素后移出,且 B 元素为 A 元素的子元素,C 元素为 B 元素的子元素,A 元素 B 元素 C 元素在空间上完全重叠
mouseover C -> mouseenter A -> mouseenter B -> mouseenter C -> mousemove C -> mouseout C -> mouseleave -> mouseleave B -> mouseleave A
interfaceMouseEventInitextendsEventModifierInit { button?: number buttons?: number clientX?: number clientY?: number movementX?: number movementY?: number relatedTarget?: EventTarget | null screenX?: number screenY?: number }
interfaceWheelEventextendsMouseEvent { readonlydeltaMode: number readonlydeltaX: number readonlydeltaY: number readonlydeltaZ: number readonlyDOM_DELTA_PIXEL: 0x00 readonlyDOM_DELTA_LINE: 0x01 readonlyDOM_DELTA_PAGE: 0x02 }