Handle updateposition event.