ph-drag
v1.0.0
Published
drag bk util
Downloads
3
Readme
🚀 Welcome to your new awesome project!
This project has been created using webpack-cli, you can now run
npm i ph-drag
usage
import PhDrag from 'ph-drag'
new PhDrag(dom:HTMEElement,callback:(e:MouseEvent|TouchEvent,pos:{x:number,y:number})=>{
//???
dom.style.transform = `translate(${x}px,${y}px)`
})