Skip to main content

Class: DragPanHandler

component.DragPanHandler

The DragPanHandler allows the user to pan the viewer image by clicking and dragging the cursor.

example

var pointerComponent = viewer.getComponent("pointer");
pointerComponent.dragPan.disable();pointerComponent.dragPan.enable();
var isEnabled = pointerComponent.dragPan.isEnabled;

Hierarchy#

Accessors#

isEnabled#

• get isEnabled(): boolean

Returns a Boolean indicating whether the interaction is enabled.

Returns#

boolean

true if the interaction is enabled.

Defined in#

component/util/HandlerBase.ts:31

Methods#

disable#

â–¸ disable(): void

Disables the interaction.

example

<component-name>.<handler-name>.disable();

Returns#

void

Inherited from#

HandlerBase.disable

Defined in#

component/util/HandlerBase.ts:60


enable#

â–¸ enable(): void

Enables the interaction.

example

<component-name>.<handler-name>.enable();

Returns#

void

Inherited from#

HandlerBase.enable

Defined in#

component/util/HandlerBase.ts:43