How can I turn off the magnet?

I am dragging an element towards a target area. The target area acts like a magnet and ‘snaps’ the element into the area when the element is near enough.
After snapping into the area, the element is ‘grabbed’ by the target area . . . and can NOT be dragged out without bouncing back.

How can I ‘turn off’ the magnet and drag the element out of the target area . . . in any direction ?

Here is a link to the code :

https://codepen.io/SteinarVdesign/pen/JjdMXeQ