Skip to main content

InputStartEvent

Since version 4.0.0

An event that fires on input start.

interface InputStartEvent

Properties

Type of the input.

Whether the input was keyboard.

Whether the input was touch.

Source Event of the input.

An instance of the component that triggered this event.

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

Properties

inputType

>=4.0.0
inputType

"zoom" | "rotate"

Type of the input.

isKeyboard

>=4.0.0
isKeyboard

boolean

Whether the input was keyboard.

isTouch

>=4.0.0
isTouch

boolean

Whether the input was touch.

srcEvent

>=4.0.0
srcEvent

MouseEvent | TouchEvent | KeyboardEvent

Source Event of the input.

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"
});