Adjusted PointerCom globalToLocal for pivot and anchor