javascript - How to get top,left,right,bottom value using x and y axis value with react-draggable? -
i new react.js wanna build dragging feature react-draggable giving x , y axis.but need top,left,right,bottom value don't know how that
my try
handleondrag(e,data,id){ // don't know console.log(e,data) } ... <draggable ondrag={(e,data) => this.handleondrag(e,data,id)} key={i} > <p>i draggable</p> </draggable> ...
Comments
Post a Comment