fixed bug with constrained dragging