So basically if you are picking away at ore, if you press the inventory button while the holding the mouse button to pick, the picking still continues. No ore is collected but the player is still swinging the pickaxe. After exiting inventory, the animation is still stuck playing and no ore is collected in this time. Press the mouse button again and the animation stops. At this point the behavior returns to normal.