easy-event 是一个简单易用的事件模块。提供了3个类:Event、EventDispatcher 和 EventCenter。
published 1.2.0 5 years agoReact 鼠标事件处理组件,通过这个高阶组件封装后,子组件具备光标样式设置(cursor)、鼠标事件回调(onMouseOver、onMouseMove、onMouseDown、onMouseUp、onMouseOut、onClick、onDragStar、onDrag、onDragEnd),在回调函数中可以拿到鼠标位置数据(localX、localY、globalX、globalY、dx、dy)
published 0.4.4 5 years ago