InputEndEvent
An event that fires on input end.
interface InputEndEvent
Properties
Type of the input.
Whether the input was keyboard.
Whether the input was touch.
Whether the page scroll triggered during the input on the touch devices.
When the page has scrolled, input itself is blocked so you can ignore the input sequence when this value is true
.
An instance of the component that triggered this event.
A type of the event.
This value is equal to event's name.
Properties
inputType
inputType"zoom" | "rotate"
Type of the input.
isKeyboard
isKeyboardboolean
Whether the input was keyboard.
isTouch
isTouchboolean
Whether the input was touch.
scrolling
scrollingboolean
Whether the page scroll triggered during the input on the touch devices.
When the page has scrolled, input itself is blocked so you can ignore the input sequence when this value is true
.
target
target
An instance of the component that triggered this event.
viewer.on("ready", evt => {
console.log(evt.target); // = viewer
});
type
typestring
A type of the event.
This value is equal to event's name.
viewer.on("ready", evt => {
console.log(evt.type); // "ready"
});