-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path30-es2015.2733a8e3ad15b18ba248.js
1 lines (1 loc) · 1.32 KB
/
30-es2015.2733a8e3ad15b18ba248.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{uJLv:function(t,o,a){"use strict";a.r(o),a.d(o,"ion_backdrop",(function(){return e}));var i=a("dSyh"),s=(a("AfW+"),a("aiEM")),c=a("mUkt");const e=class{constructor(t){Object(i.l)(this,t),this.lastClick=-1e4,this.blocker=c.GESTURE_CONTROLLER.createBlocker({disableScroll:!0}),this.visible=!0,this.tappable=!0,this.stopPropagation=!0,this.ionBackdropTap=Object(i.d)(this,"ionBackdropTap",7)}connectedCallback(){this.stopPropagation&&this.blocker.block()}disconnectedCallback(){this.blocker.unblock()}onTouchStart(t){this.lastClick=Object(s.i)(t),this.emitTap(t)}onMouseDown(t){this.lastClick<Object(s.i)(t)-2500&&this.emitTap(t)}emitTap(t){this.stopPropagation&&(t.preventDefault(),t.stopPropagation()),this.tappable&&this.ionBackdropTap.emit()}render(){const t=Object(i.e)(this);return Object(i.i)(i.a,{tabindex:"-1",class:{[t]:!0,"backdrop-hide":!this.visible,"backdrop-no-tappable":!this.tappable}})}static get style(){return":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color,#000)}"}}}}]);