Use primary mouse button and the character will start using it automatically no matter what you have in your hand.
Using right mouse button to zoom in will make it lock itself inplace randomly untill you release it with the same button by pressing it, for it to zoom out.
Drag item into inventory from vicinity with primary mouse button will lock itself in even thought you released the button into inventory and wont let go.