Renamed pan() and implemented getX() and getY().