adjust `lockOrientation` because to avoid Firefox throwing a `TypeError`