Types
import type { PointerType, MouseButton, ViewEvent, EventDefer, EventDeferredOperation } from "@arcgis/core/views/input/types.js";

Type definitions

PointerType

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Type
"mouse" | "touch" | "pen"

MouseButton

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates which mouse button was clicked. See MouseEvent.button.

ValueDescription
0left click (or touch)
1middle click
2right click
3back click
4forward click
-1unknown button
Type
0 | 1 | 2 | 3 | 4 | -1

ViewEvent

Type definition
Type parameters
<T extends Event = Event>
Since
ArcGIS Maps SDK for JavaScript 5.0

Base interface for view input events.

timestamp

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

Time stamp (in milliseconds) at which the event was created.

native

Property
Type
T
Since
ArcGIS Maps SDK for JavaScript 5.0

A standard DOM Event.

stopPropagation

Method
Signature
stopPropagation (): void
Since
ArcGIS Maps SDK for JavaScript 5.0

Prevents the event bubbling up the event chain.

Returns
void

defer

Property
Type
EventDefer
Since
ArcGIS Maps SDK for JavaScript 5.0

A function that can be called to defer event propagation until the passed in asynchronous function is completed. Calling defer will stall the entire event pipeline and should be used with caution.

EventDefer

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Parameters

ParameterTypeDescriptionRequired
operation

An asynchronous operation.

Returns
Promise

The result of calling the passed in operation.

EventDeferredOperation

Type definition
Type parameters
<T>
Since
ArcGIS Maps SDK for JavaScript 4.33

Aynchronous function passed to the defer method of an event.

See also
Returns
Promise

The event pipeline is deferred until the promise is resolved.

ClickEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@click event.

type

Property
Type
"click"
Since
ArcGIS Maps SDK for JavaScript 5.0

The event type.

button

Property
Type
MouseButton
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates which mouse button was clicked.

buttons

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates the current mouse button state.

ValueDescription
0left click (or touch)
1middle click
2right click

x

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The horizontal screen coordinate of the click on the view.

y

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The vertical screen coordinate of the click on the view.

mapPoint

Property
Type
Point
Since
ArcGIS Maps SDK for JavaScript 5.0

The point location of the click on the view in the spatial reference of the map.

DoubleClickEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@double-click event.

type

Property
Type
"double-click"
Since
ArcGIS Maps SDK for JavaScript 5.0

The event type.

button

Property
Type
MouseButton
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates which mouse button was clicked.

buttons

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates the current mouse button state.

ValueDescription
0left click (or touch)
1middle click
2right click

x

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The horizontal screen coordinate of the click on the view.

y

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The vertical screen coordinate of the click on the view.

mapPoint

Property
Type
Point
Since
ArcGIS Maps SDK for JavaScript 5.0

The point location of the click on the view in the spatial reference of the map.

ImmediateClickEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@immediate-click event.

type

Property
Type
"immediate-click"
Since
ArcGIS Maps SDK for JavaScript 5.0

The event type.

button

Property
Type
MouseButton
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates which mouse button was clicked. See MouseEvent.button.

ValueDescription
0left click (or touch)
1middle click
2right click

buttons

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates which buttons are pressed when the event is triggered. See MouseEvent.buttons.

x

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The horizontal screen coordinate of the click on the view.

y

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The vertical screen coordinate of the click on the view.

mapPoint

Property
Type
Point
Since
ArcGIS Maps SDK for JavaScript 5.0

The point location of the click on the view in the spatial reference of the map.

ImmediateDoubleClickEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@immediate-double-click event.

type

Property
Type
"immediate-double-click"
Since
ArcGIS Maps SDK for JavaScript 5.0

The event type.

button

Property
Type
MouseButton
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates which mouse button was clicked. See MouseEvent.button.

ValueDescription
0left click (or touch)
1middle click
2right click

buttons

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates which buttons are pressed when the event is triggered. See MouseEvent.buttons.

x

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The horizontal screen coordinate of the click on the view.

y

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The vertical screen coordinate of the click on the view.

mapPoint

Property
Type
Point
Since
ArcGIS Maps SDK for JavaScript 5.0

The point location of the click on the view in the spatial reference of the map.

HoldEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@hold event.

type

Property
Type
"hold"
Since
ArcGIS Maps SDK for JavaScript 5.0

The event type.

button

Property
Type
MouseButton
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates which mouse button was held down. See MouseEvent.button.

ValueDescription
0left mouse button (or touch)
1middle mouse button
2right mouse button

buttons

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates which mouse buttons are pressed when the event is triggered. See MouseEvent.buttons.

x

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The horizontal screen coordinate of the hold on the view.

y

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The vertical screen coordinate of the hold on the view.

mapPoint

Property
Type
Point
Since
ArcGIS Maps SDK for JavaScript 5.0

The point location of the click on the view in the spatial reference of the map.

DragEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@drag event.

type

Property
Type
"drag"
Since
ArcGIS Maps SDK for JavaScript 5.0

The event type.

action

Property
Type
"start" | "update" | "added" | "removed" | "end"
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates the state of the drag. The two values added and removed indicate a change in the number of pointers involved.

button

Property
Type
MouseButton
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates which mouse button was clicked at the start of the drag. See MouseEvent.button.

ValueDescription
0left mouse button (or touch)
1middle mouse button
2right mouse button

buttons

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates which mouse buttons are pressed when the event is triggered. See MouseEvent.buttons.

x

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The horizontal screen coordinate of the pointer on the view.

y

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The vertical screen coordinate of the pointer on the view.

origin

Property
Type
DragEventOrigin
Since
ArcGIS Maps SDK for JavaScript 5.0

Screen coordinates of the start of the drag.

angle

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

Amount of rotation (in degrees) since the last event of type start.

radius

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The radius of a sphere around the multiple pointers involved in this drag. Or 0 while only a single pointer is used.

DragEventOrigin

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Screen coordinates where a View.@drag started.

x

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The horizontal screen coordinate of the pointer on the view.

y

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The vertical screen coordinate of the pointer on the view.

KeyDownEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@key-down event.

Supertypes
ViewEvent<KeyboardEvent>

type

Property
Type
"key-down"
Since
ArcGIS Maps SDK for JavaScript 5.0

The event type.

repeat

Property
Type
boolean
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates whether this is the first event emitted due to the key press, or a repeat.

key

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The key value that was pressed, according to the MDN full list of key values.

KeyUpEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@key-up event.

Supertypes
ViewEvent<KeyboardEvent>

type

Property
Type
"key-up"
Since
ArcGIS Maps SDK for JavaScript 5.0

The event type.

key

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The key value that was released, according to the MDN full list of key values.

PointerEventCommon

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Base interface for pointer events emitted by the view.

Supertypes
ViewEvent<PointerEvent>

pointerId

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

Uniquely identifies a pointer between multiple down, move, and up events. Ids might get reused after a pointer-up event.

pointerType

Property
Type
PointerType
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates the pointer type.

button

Property
Type
MouseButton
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates which mouse button was clicked.

buttons

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates which mouse buttons are pressed when the event is triggered. See MouseEvent.buttons.

x

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The horizontal screen coordinate of the pointer on the view.

y

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The vertical screen coordinate of the pointer on the view.

PointerDownEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@pointer-down event.

Supertypes
PointerEventCommon

type

Property
Type
"pointer-down"
Since
ArcGIS Maps SDK for JavaScript 5.0

The event type.

PointerMoveEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@pointer-move event.

Supertypes
PointerEventCommon

type

Property
Type
"pointer-move"
Since
ArcGIS Maps SDK for JavaScript 5.0

The event type.

PointerUpEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@pointer-up event.

Supertypes
PointerEventCommon

type

Property
Type
"pointer-up"
Since
ArcGIS Maps SDK for JavaScript 5.0

The event type.

PointerEnterEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@pointer-enter event.

Supertypes
PointerEventCommon

type

Property
Type
"pointer-enter"
Since
ArcGIS Maps SDK for JavaScript 5.0

The event type.

PointerLeaveEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@pointer-leave event.

Supertypes
PointerEventCommon

type

Property
Type
"pointer-leave"
Since
ArcGIS Maps SDK for JavaScript 5.0

The event type.

ViewMouseWheelEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@mouse-wheel event.

Supertypes
ViewEvent<WheelEvent>

type

Property
Type
"mouse-wheel"
Since
ArcGIS Maps SDK for JavaScript 5.0

The event type.

x

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The horizontal screen coordinate of the click on the view.

y

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The vertical screen coordinate of the click on the view.

deltaY

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

Number representing the vertical scroll amount.

ViewFocusEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@focus event.

Supertypes
ViewEvent<FocusEvent>

ViewBlurEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@blur event.

Supertypes
ViewEvent<FocusEvent>

ViewResizeEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@resize event.

oldWidth

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The previous view width in pixels

oldHeight

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The previous view height in pixels

width

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The new measured view width in pixels

height

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The new measured view height in pixels

LayerViewCreateEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@layerview-create event.

layer

Property
Type
Layer
Since
ArcGIS Maps SDK for JavaScript 5.0

The layer in the map for which the layerView was created.

layerView

Property
Type
LayerView
Since
ArcGIS Maps SDK for JavaScript 5.0

The LayerView rendered in the view representing the layer in layer.

LayerViewCreateErrorEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@layerview-create-error event.

layer

Property
Type
Layer
Since
ArcGIS Maps SDK for JavaScript 5.0

The layer in the map for which the view emitting this event failed to create a layer view.

error

Property
Type
Error
Since
ArcGIS Maps SDK for JavaScript 5.0

An error object describing why the layer view could not be created.

LayerViewDestroyEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@layerview-destroy event.

layer

Property
Type
Layer
Since
ArcGIS Maps SDK for JavaScript 5.0

The layer in the map for which the layerView was destroyed.

layerView

Property
Type
LayerView
Since
ArcGIS Maps SDK for JavaScript 5.0

The LayerView that was destroyed in the view.

DoubleTapDragEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@double-tap-drag event.

type

Property
Type
"double-tap-drag"
Since
ArcGIS Maps SDK for JavaScript 5.0

The event type.

action

Property
Type
"begin" | "update" | "end"
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates the state of the drag.

button

Property
Type
MouseButton
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates which mouse button was clicked at the start of the drag. See MouseEvent.button.

ValueDescription
0left mouse button (or touch)
1middle mouse button
2right mouse button

buttons

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates which mouse buttons are pressed when the event is triggered. See MouseEvent.buttons.

x

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The horizontal distance from the drag origin in pixels.

y

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The vertical distance from the drag origin in pixels.

VerticalTwoFingerDragEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Event payload for the view's View.@vertical-two-finger-drag event.

type

Property
Type
"vertical-two-finger-drag"
Since
ArcGIS Maps SDK for JavaScript 5.0

The event type.

action

Property
Type
"begin" | "update" | "end"
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates the state of the drag.

y

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The vertical distance from the drag origin in pixels.

ViewBaseEventTypes

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

resize

Property
Type
ViewResizeEvent
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires when the view's size changes.

See also

layerview-create

Property
Type
LayerViewCreateEvent
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires after each layer in the map has a corresponding LayerView created and rendered in the view.

See also
Example
// This function fires each time a layer view is created for a layer in
// the map of the view.
view.on("layerview-create", function(event) {
// The event contains the layer and its layer view that has just been
// created. Here we check for the creation of a layer view for a layer with
// a specific id, and log the layer view
if (event.layer.id === "satellite") {
// The LayerView for the desired layer
console.log(event.layerView);
}
});

layerview-create-error

Property
Type
LayerViewCreateErrorEvent
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires when an error occurs during the creation of a LayerView after a layer has been added to the map.

See also
Example
// This function fires each time an error occurs during the creation of a layerview
view.on("layerview-create-error", function(event) {
console.error("LayerView failed to create for layer with the id: ", event.layer.id);
});

layerview-destroy

Property
Type
LayerViewDestroyEvent
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires after a LayerView is destroyed and is no longer rendered in the view. This happens for example when a layer is removed from the map of the view.

ViewEventTypes

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Supertypes
ViewBaseEventTypes

click

Property
Type
ClickEvent
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires after a user clicks on the view. This event emits slightly slower than an View.@immediate-click event to make sure that a View.@double-click event isn't triggered instead. The View.@immediate-click event can be used for responding to a click event without delay.

See also
Examples
view.on("click", function(event){
// event is the event object returned after the event fires
// Prints the map coordinates of the clicked location
console.log(event.mapPoint);
});
// Set up a click event handler and retrieve the screen point
view.on("click", function(event) {
// the hitTest() checks to see if any graphics in the view
// intersect the given screen x, y coordinates
view.hitTest(event)
.then(getGraphics);
});
view.on("click", function(event) {
// you must overwrite default click-for-popup
// behavior to display your own popup
view.popupEnabled = false;
// Get the coordinates of the click on the view
let lat = Math.round(event.mapPoint.latitude * 1000) / 1000;
let lon = Math.round(event.mapPoint.longitude * 1000) / 1000;
view.popup.open({
// Set the popup's title to the coordinates of the location
title: "Reverse geocode: [" + lon + ", " + lat + "]",
location: event.mapPoint // Set the location of the popup to the clicked location
content: "This is a point of interest" // content displayed in the popup
});
});

double-click

Property
Type
DoubleClickEvent
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires after double-clicking on the view.

Example
view.on("double-click", function(event) {
// The event object contains the mapPoint and the screen coordinates of the location
// that was clicked.
console.log("screen point", event.x, event.y);
console.log("map point", event.mapPoint);
});

immediate-click

Property
Type
ImmediateClickEvent

Fires right after a user clicks on the view. In contrast to the View.@click event, the immediate-click event is emitted as soon as the user clicks on the view, and is not inhibited by a View.@double-click event. This event is useful for interactive experiences that require feedback without delay.

Example
// Set up an immediate-click event handler and retrieve the screen point
view.on("immediate-click", function(event) {
// the hitTest() checks to see if any graphics in the view
// intersect the given screen x, y coordinates
view.hitTest(event)
.then(getGraphics);
});

immediate-double-click

Property
Type
ImmediateDoubleClickEvent

Is emitted after two consecutive View.@immediate-click events. In contrast to View.@double-click, an immediate-double-click cannot be prevented by use of stopPropagation on the View.@immediate-click event and can therefore be used to react to double-clicking independently of usage of the View.@immediate-click event.

hold

Property
Type
HoldEvent
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires after holding either a mouse button or a single finger on the view for a short amount of time.

Example
view.on("hold", function(event) {
// The event object contains the mapPoint and the screen coordinates of the location
// that was clicked.
console.log("hold at screen point", event.x, event.y);
console.log("hold at map point", event.mapPoint);
});

drag

Property
Type
DragEvent
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires during a pointer drag on the view.

Example
view.on("drag", function(event){
// Print out the current state of the
// drag event.
console.log("drag state", event.action);
});

key-down

Property
Type
KeyDownEvent
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires after a keyboard key is pressed.

Example
// Zoom in when user clicks on "a" button
// Zoom out when user clicks on "s" button
view.on("key-down", function(event){
console.log("key-down", event);
if (event.key === "a"){
let zm = view.zoom + 1;
view.goTo({
target: view.center,
zoom: zm
});
}
else if(event.key == "s"){
let zm = view.zoom - 1;
view.goTo({
target: view.center,
zoom: zm
});
}
});

key-up

Property
Type
KeyUpEvent
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires after a keyboard key is released.

pointer-down

Property
Type
PointerDownEvent
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires after a mouse button is pressed, or a finger touches the display.

pointer-move

Property
Type
PointerMoveEvent
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires after the mouse or a finger on the display moves.

Example
// Fires `pointer-move` event when user clicks on "Shift"
// key and moves the pointer on the view.
view.on('pointer-move', ["Shift"], function(event){
let point = view.toMap({x: event.x, y: event.y});
bufferPoint(point);
});

pointer-up

Property
Type
PointerUpEvent
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires after a mouse button is released, or a display touch ends.

pointer-enter

Property
Type
PointerEnterEvent
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires after a mouse cursor enters the view, or a display touch begins.

pointer-leave

Property
Type
PointerLeaveEvent
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires after a mouse cursor leaves the view, or a display touch ends.

mouse-wheel

Property
Type
ViewMouseWheelEvent
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires when a wheel button of a pointing device (typically a mouse) is scrolled on the view.

Example
view.on("mouse-wheel", function(event){
// deltaY value is positive when wheel is scrolled up
// and it is negative when wheel is scrolled down.
console.log(event.deltaY);
});

focus

Property
Type
ViewFocusEvent

Fires when browser focus is on the view.

blur

Property
Type
ViewBlurEvent

Fires when browser focus is moved away from the view.

double-tap-drag

Property
Type
DoubleTapDragEvent
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires while the pointer is drag following a double-tap gesture on the view.

Example
view.on("double-tap-drag", (event) => {
// Display the distance moved from the drag origin.
console.log("x distance:", event.x, "y distance:", event.y);
});

vertical-two-finger-drag

Property
Type
VerticalTwoFingerDragEvent
Since
ArcGIS Maps SDK for JavaScript 5.0

Fires while the two pointers are dragged on the view.

Example
view.on("vertical-two-finger-drag", (event) => {
// Display the distance moved vertically from the drag origin.
console.log("y distance:", event.y);
});