mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-19 19:07:47 -05:00
never mind screen.orientation
This commit is contained in:
parent
ef1b7d8f9f
commit
f55dd02665
1 changed files with 1 additions and 2 deletions
|
@ -124,8 +124,7 @@ class Preview extends React.Component {
|
||||||
*/
|
*/
|
||||||
const isMobileDevice = screen.height <= frameless.mobile || screen.width <= frameless.mobile;
|
const isMobileDevice = screen.height <= frameless.mobile || screen.width <= frameless.mobile;
|
||||||
if (this.props.playerMode && isMobileDevice) {
|
if (this.props.playerMode && isMobileDevice) {
|
||||||
const isLandscape = (screen.orientation.type && screen.orientation.type === 'landscape-primary') ||
|
const isLandscape = screen.height < screen.width;
|
||||||
screen.height < screen.width;
|
|
||||||
if (isLandscape) {
|
if (isLandscape) {
|
||||||
this.props.setFullScreen(true);
|
this.props.setFullScreen(true);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue