Safer mouse position lookup.