Skip to main content

StaticClickEvent

Since version 4.0.0

An event that fires after clicking on canvas element without dragging.

interface StaticClickEvent

Properties

Whether the input was touch.

An instance of the component that triggered this event.

A type of the event.
This value is equal to event's name.

Properties

isTouch

>=4.0.0
isTouch

boolean

Whether the input was touch.

target

>=4.0.0
target

View360

An instance of the component that triggered this event.

Example
viewer.on("ready", evt => {
console.log(evt.target); // = viewer
});

type

>=4.0.0
type

string

A type of the event.
This value is equal to event's name.

Example
viewer.on("ready", evt => {
console.log(evt.type); // "ready"
});