drag


Module hilo/util/drag Requires hilo/core/Class, hilo/core/Hilo Source drag.js
drag A mixin that contains drag method.You can mix drag method to the visual target by use Class.mix(target, drag) or Hilo.copy(target, drag).

Methods

Method Defined
startDrag(bounds:Array)
static
drag
static
drag

Method Detail

[Static] startDrag(bounds:Array)
parameters
bounds:Array — The bounds area that the view can move, relative to the coordinates of the view's parent, [x, y, width, height], default is no limit.
[Static] stopDrag()