drag


模块 hilo/util/drag 依赖 hilo/core/Class, hilo/core/Hilo 源码 drag.js
drag是一个包含拖拽功能的mixin。可以通过 Class.mix(view, drag)或Hilo.copy(view, drag)来为view增加拖拽功能。

方法概览

方法 定义于
startDrag(bounds:Array)
static
drag
static
drag

方法详情

[Static] startDrag(bounds:Array)
parameters
bounds:Array — 拖拽范围,基于父容器坐标系,[x, y, width, height], 默认无限制
[Static] stopDrag()