public interface DOMMouseEvent extends DOMUIEventModifier
Modifier and Type | Method and Description |
---|---|
int |
getButton()
Indicates which button was pressed on the mouse to trigger the event.
指示在鼠标上按下哪个按钮来触发事件。 |
int |
getClientX()
The X coordinate of the mouse pointer in local (DOM content) coordinates.
鼠标指针的X坐标(本地(DOM内容)坐标)。 |
int |
getClientY()
The Y coordinate of the mouse pointer in local (DOM content) coordinates.
鼠标指针的Y坐标(本地(DOM内容)坐标)。 |
int |
getScreenX()
The X coordinate of the mouse pointer in global (screen) coordinates.
鼠标指针的X坐标(全局(屏幕)坐标)。 |
int |
getScreenY()
The Y coordinate of the mouse pointer in global (screen) coordinates.
鼠标指针的Y坐标(全局(屏幕)坐标)。 |
altKey, ctrlKey, metaKey, shiftKey
getDetail
getCurrentTarget, getEventPhase, getTarget, getType, isBubbles, isCancelable, isKeyboardEvent, isMouseEvent, isUIEvent, preventDefault, stopPropagation
int getClientX()
int getClientY()
int getScreenX()
int getScreenY()
int getButton()