Detects if panning outside of domain to avoid exception.