ScreenSpaceEvent
ScreenSpaceEvent is an event callback for mouse or touch interactions.
See also: ScreenSpaceEventHandler#setInputAction
- Example: ScreenSpaceEvent
Availability
Section titled “Availability”Only inside ScreenSpaceEventHandler.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
| action | ((e: { position: Cartesian2; } | { startPosition: Cartesian2; endPosition: Cartesian2; }) => void) | undefined | If empty, the event will be removed even if there is the default event. |
| modifier | KeyboardEventModifier | undefined | |
| type | ScreenSpaceEventType |