Closed ksons closed 9 years ago
Using eventattributes such as
<mesh src="teapot.json" onclick="console.log('Teapot');"></mesh>
trigger twice. This affects only HTML encoding and event attributes. Using addEventListener or the same scene in XHTML are not concerned.
addEventListener
I've added checks to the mouse event attributes polyfill that will prevent it from adding a second event listener to the element in HTML documents.
Using eventattributes such as
trigger twice. This affects only HTML encoding and event attributes. Using
addEventListener
or the same scene in XHTML are not concerned.