Whenever an operation is being performed in the inventory, any clicks on the inventory window will send the character walking towards a position behind the inventory.

I'm guessing the way the game disables action is by not registering clicks on the inventory - which causes the clicks to register in the game world instead.