Update the position and command state in Gecko after a mouse click