diff --git a/pxtlib/browserutils.ts b/pxtlib/browserutils.ts index e7f7d43642d8..46192662eafa 100644 --- a/pxtlib/browserutils.ts +++ b/pxtlib/browserutils.ts @@ -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 {