Skip to content

Commit

Permalink
Re: Sim missing at exactly 991px width from MicroBit repo (#9621)
Browse files Browse the repository at this point in the history
* changed:
`        return window?.innerWidth = pxt.BREAKPOINT_TABLET;
`

to

`        return window?.innerWidth <= pxt.BREAKPOINT_TABLET;
`

* changed `isComputerSize` function from >= to >
  • Loading branch information
emoltz authored Aug 1, 2023
1 parent c1beefd commit d3861d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pxtlib/browserutils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ namespace pxt.BrowserUtils {
}

export function isTabletSize(): boolean {
return window?.innerWidth < pxt.BREAKPOINT_TABLET;
return window?.innerWidth <= pxt.BREAKPOINT_TABLET;
}

export function isComputerSize(): boolean {
return window?.innerWidth >= pxt.BREAKPOINT_TABLET;
return window?.innerWidth > pxt.BREAKPOINT_TABLET;
}

export function noSharedLocalStorage(): boolean {
Expand Down

0 comments on commit d3861d3

Please sign in to comment.