Reworked callback handling during dragging according to not moving element due to constrain function