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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -