properly interpret click position depending on scale