Object: MouseEvent
The MouseEvent object extends the UIEvent object and represents an event generated by the BlackBerry® device trackball or trackwheel. It provides contextual information associated with clicking the trackball or trackwheel and moving the pointer in the BlackBerry® Browser window.
To create an instance of a MouseEvent, you must invoke Document.createEvent() with an input parameter of ”MouseEvent”.
Mouse event types
Event type |
Bubbles |
Cancelable |
Description |
|---|---|---|---|
click |
yes |
yes |
Occurs when the user clicks the trackball or trackwheel on a BlackBerry® device, or, on touchscreen devices, when the user performs a tap. This event type includes the following context information: UIEvent.detail, MouseEvent.altKey, MouseEvent.button, MouseEvent.clientX, MouseEvent.clientY, MouseEvent.ctrlKey, MouseEvent.metaKey, MouseEvent.screenX, MouseEvent.screenY, MouseEvent.shiftKey |
mousedown |
yes |
yes |
Occurs when the user depresses the trackwheel or trackball on a BlackBerry device. This event type includes the following context information: UIEvent.detail, MouseEvent.altKey, MouseEvent.button, MouseEvent.clientX, MouseEvent.clientY, MouseEvent.ctrlKey, MouseEvent.metaKey, MouseEvent.screenX, MouseEvent.screenY, MouseEvent.shiftKey |
mousemove |
yes |
no |
Occurs when the user moves the pointer while it is over an element. This event type includes the following context information: MouseEvent.altKey, MouseEvent.clientX, MouseEvent.clientY, MouseEvent.ctrlKey, MouseEvent.metaKey, MouseEvent.screenX, MouseEvent.screenY, MouseEvent.shiftKey |
mouseout |
yes |
yes |
Occurs when the user moves the pointer off of an element. This event type includes the following context information: MouseEvent.altKey, MouseEvent.clientX, MouseEvent.clientY, MouseEvent.ctrlKey, MouseEvent.metaKey, MouseEvent.relatedTarget (indicating which EventTarget the pointer is leaving), MouseEvent.screenX, MouseEvent.screenY, MouseEvent.shiftKey |
mouseover |
yes |
yes |
Occurs when the user moves the pointer over an element. This event type includes the following context information: MouseEvent.altKey, MouseEvent.clientX, MouseEvent.clientY, MouseEvent.ctrlKey, MouseEvent.metaKey, MouseEvent.relatedTarget (indicating which EventTarget the pointer is entering), MouseEvent.screenX, MouseEvent.screenY, MouseEvent.shiftKey |
mouseup |
yes |
yes |
Occurs when the user releases the trackwheel or trackball on a BlackBerry device. This event type includes the following context information: UIEvent.detail, MouseEvent.altKey, MouseEvent.button, MouseEvent.clientX, MouseEvent.clientY, MouseEvent.ctrlKey, MouseEvent.metaKey, MouseEvent.screenX, MouseEvent.screenY, MouseEvent.shiftKey |