Skip to main content

ScreenSpaceEvent

ScreenSpaceEvent is an event callback for mouse or touch interactions.

See also: ScreenSpaceEventHandler#setInputAction

Availability

Only inside ScreenSpaceEventHandler.

Properties

PropertyTypeDescription
action(e: { position: Cartesian2; } | { startPosition: Cartesian2; endPosition: Cartesian2; }) => voidIf empty, the event will be removed even if there is the default event.
modifierKeyboardEventModifier
typeScreenSpaceEventType