Skip to main content

inputStart

import { EVENTS, InputStartEvent } from "@egjs/view360";

// Typescript
const onInputStart = (evt: InputStartEvent) => {};

view360.on(EVENTS.INPUT_START, onInputStart);

An event that fires on input start.

Properties​

srcEvent: MouseEvent | TouchEvent | KeyboardEvent​

Source Event of the input.

inputType: "rotate" | "zoom"​

Type of the input.

isTouch: boolean​

Whether the input was touch.

isKeyboard: boolean​

Whether the input was keyboard.

info

The following is a list of available events in the example:

  • "inputStart", "inputEnd", "staticClick"

Events Triggered