How to use the @deckdeckgo/utils.isIOS function in @deckdeckgo/utils

To help you get started, we’ve selected a few @deckdeckgo/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github deckgo / deckdeckgo / studio / src / app / components / editor / app-editor-toolbar / app-editor-toolbar.tsx View on Github external
private async confirmDeleteElement($event: UIEvent) {
        const popover: HTMLIonPopoverElement = await popoverController.create({
            component: 'app-element-delete',
            event: $event,
            mode: isMobile() && !isIOS() ? 'md' : 'ios'
        });

        popover.onDidDismiss().then(async (detail: OverlayEventDetail) => {
            if (detail && detail.data) {
                await this.deleteElement();
            }
        });

        await popover.present();
    }
github deckgo / deckdeckgo / webcomponents / inline-editor / src / components / inline-editor / deckdeckgo-inline-editor.tsx View on Github external
return new Promise((resolve) => {
      if (!this.stickyMobile || !isIOS() || !window) {
        resolve();
        return;
      }

      if (this.iOSTimerScroll > 0) {
        clearTimeout(this.iOSTimerScroll);
      }

      this.iOSTimerScroll = setTimeout(() => {
        this.el.style.setProperty('--deckgo-inline-editor-sticky-scroll', `${window.scrollY}px`);
      }, 50);

      resolve();
    });
  }
github deckgo / deckdeckgo / studio / src / app / pages / editor / app-editor / app-editor.tsx View on Github external
private stickyToolbarActivated($event: CustomEvent) {
        this.hideFooterActions = $event ? $event.detail : false;
        this.hideNavigation = $event ? isIOS() && $event.detail : false;
    }