Class: Drag

Drag

Plugin to enable panning/dragging of the viewport to move around.

new Drag ()

This is called by Viewport.drag.

Classes

Drag

Members

windowEventHandlers

Array of event-handlers for window

Methods

checkButtons (event)boolean

Name Type Description
event PIXI.InteractionEvent
Returns:
Type Description
boolean

checkKeyPress (event)boolean

Name Type Description
event PIXI.InteractionEvent
Returns:
Type Description
boolean

handleKeyPresses (codes)

Handles keypress events and set the keyIsPressed boolean accordingly

Name Type Description
codes array

key codes that can be used to trigger drag event

mouseButtons (buttons)

initialize mousebuttons array

Name Type Description
buttons string