You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TouchEmulator();classBlockextendsHTMLElement{constructor(){super()}connectedCallback(){constshadowRoot=this.attachShadow({mode: 'open'});let$div=document.createElement("div")$div.style.width="100px"$div.style.height="100px"$div.style.backgroundColor="red"shadowRoot.append($div)this.addEventListener("touchstart",(e)=>{console.log("touch my-block")})$div.addEventListener("touchstart",(e)=>{// This handler is not called if TouchEmulator() has been called. // This is only broken if attached to a shadowRoot instead of the actual element. console.log("touch my-block div")})}}customElements.define('my-block',Block)
The text was updated successfully, but these errors were encountered:
IanBellomy
changed the title
TouchStart not dispatched to shadow children
TouchStart not dispatched through shadow root
Dec 29, 2018
IanBellomy
changed the title
TouchStart not dispatched through shadow root
TouchStart not dispatched through shadow root (?)
Dec 29, 2018
This may be related to: #2
The text was updated successfully, but these errors were encountered: