Pass pointer events through the div (todo: think of something when player thing goes live)

This commit is contained in:
Tamius Han 2018-12-07 00:22:27 +01:00
parent 2c889b55a8
commit 11d7e59645

View File

@ -77,6 +77,7 @@ class PlayerData {
overlay.style.top = '0';
overlay.style.left = '0';
overlay.style.zIndex = '1000000000';
overlay.style.pointerEvents = 'none';
overlay.innerHTML = `<div style="background-color: ${color}; color: #fff; position: absolute; top: 0; left: 0">${name}</div>`;
this.overlayNode = overlay;