Thursday, September 14, 2023
HomeCSSjavascript - Exactly how can I make the 'pointermove' occasion maintain shooting...

javascript – Exactly how can I make the ‘pointermove’ occasion maintain shooting after shutting a dialog component?


 dialog.showModal();.

button.addEventListener(" pointerdown", () => > {
dialog.close();.
} );.

container.addEventListener(" pointermove", () => > {
console.log(" relocation");.
} );
 html, body, dialog, #container, #button {
touch-action: none;.
}

#container {
size: 100px;.
elevation: 100px;.
history: red;.
}

#button {
size: 50px;.
elevation: 50px;.
history: eco-friendly;.
} 
<< div id=" container">

<> .

<< dialog id=" dialog">
> Replicate a touch gadget making use of devtools and also drag the eco-friendly square to the red square.
<< div id=" switch">

<> .
<
RELATED ARTICLES

Most Popular

Recent Comments