Are you familiar with getBoundingClientRect?   That will give you screen position of an element. So you need to find the difference between the draggable and the pink box.    See the Pen ExmBejx by GreenSock (@GreenSock) on CodePen  
    • Like
    4