diff options
-rw-r--r-- | src/ws/node.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ws/node.js b/src/ws/node.js index 439165b..b99882b 100644 --- a/src/ws/node.js +++ b/src/ws/node.js @@ -271,6 +271,15 @@ function checkHTML(html) return true; } +function makeClickthrough(e) +{ + var elements = e.getElementsByTagName("*"); + for(let element of elements) + { + element.style.pointerEvents = "none"; // enable clickthrough to parent + } +} + Node.prototype.setAttribute = function(name, value) { this.attributes[name] = value; @@ -295,6 +304,7 @@ Node.prototype.setAttribute = function(name, value) { // Insert as HTML this.description_element.innerHTML = value; + makeClickthrough(this.description_element); } else { |