Dynamically changing pointerDragBehavior

Thank you, Evgeni, Cedric and Deltakosh.

Now my code is behaving better but not perfectly.

The expected behavior is that when you grab the top half of the box it move on the Y axis, which it does, and when you grab the bottom half it moves in the XZ plane, which it does sometimes.

If I make it so it move on the X axis instead, it works fine. Something is up with applying the dragPlaneNormal options. Could it be related to this issue, that is, some parameters not getting cleared?