@ionic/core
Version:
Base components for Ionic
4 lines • 559 B
JavaScript
/*!
* (C) Ionic http://ionicframework.com - MIT License
*/
import{e as o,w as s}from"./p-BpRUsN_W.js";import{a as t,s as r}from"./p-CXs4J83x.js";import{c as a}from"./p-Co7eql8D.js";import"./p-Dojwmvde.js";const e=()=>{const e=window;e.addEventListener("statusTap",(()=>{o((()=>{const o=document.elementFromPoint(e.innerWidth/2,e.innerHeight/2);if(!o)return;const p=t(o);p&&new Promise((o=>a(p,o))).then((()=>{s((async()=>{p.style.setProperty("--overflow","hidden"),await r(p,300),p.style.removeProperty("--overflow")}))}))}))}))};export{e as startStatusTap}