I\'m trying to make some code to resize an element to the mouse cursor, with the element "anchored" to a certain starting position. However, it quickly falls apart