Use a better method to calculate relative coordinates while moving among screens