UNPKG

test-isc

Version:

An Ionic component similar to Ionic Select, that allows to search items, including async search, group, add, edit, delete items, and much more.

24 lines (21 loc) 710 B
import { i as readTask, w as writeTask } from './index-b6f64b02.js'; const startStatusTap = () => { const win = window; win.addEventListener('statusTap', () => { readTask(() => { const width = win.innerWidth; const height = win.innerHeight; const el = document.elementFromPoint(width / 2, height / 2); if (!el) { return; } const contentEl = el.closest('ion-content'); if (contentEl) { contentEl.componentOnReady().then(() => { writeTask(() => contentEl.scrollToTop(300)); }); } }); }); }; export { startStatusTap };