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.
22 lines (21 loc) • 738 B
JavaScript
import { i as readTask, w as writeTask } from './index-b6f64b02.js';
var startStatusTap = function () {
var win = window;
win.addEventListener('statusTap', function () {
readTask(function () {
var width = win.innerWidth;
var height = win.innerHeight;
var el = document.elementFromPoint(width / 2, height / 2);
if (!el) {
return;
}
var contentEl = el.closest('ion-content');
if (contentEl) {
contentEl.componentOnReady().then(function () {
writeTask(function () { return contentEl.scrollToTop(300); });
});
}
});
});
};
export { startStatusTap };