From d3861d304d2860e07c107f819c64d24ee3fa39fa Mon Sep 17 00:00:00 2001 From: Ethan Shafran Moltz <33405530+emoltz@users.noreply.github.com> Date: Tue, 1 Aug 2023 12:58:59 -0400 Subject: [PATCH] Re: Sim missing at exactly 991px width from MicroBit repo (#9621) * changed: ` return window?.innerWidth = pxt.BREAKPOINT_TABLET; ` to ` return window?.innerWidth <= pxt.BREAKPOINT_TABLET; ` * changed `isComputerSize` function from >= to > --- pxtlib/browserutils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {