Drag

altspace/utilities/behaviors. Drag

new Drag(configopt)

A behavior that makes an object draggable along a plane.

Parameters:
Name Type Attributes Description
config Object <optional>

Specify the axes along which the object can be dragged. E.g. To constraint th object to an XY plane: {x: true, y: true}
Each axis can also be an object specifying the minimum and maximum limits of the constraint. E.g. {x: {min: -10, max: 20}, y: true}
Currently you must specify exactly two axes.