iframe-touch-relay
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -151,3 +151,4 @@ | ||
const dehidratedTouches = touches.map((t) => { | ||
const target = document.elementFromPoint(t.clientX, t.clientY) || document.body; | ||
const targetCandidates = document.elementsFromPoint(t.clientX, t.clientY); | ||
const target = targetCandidates.filter(item => !item.classList.contains("debug-iframe-relay-point"))[0]; | ||
const elementRelativeX = t.clientX; | ||
@@ -157,3 +158,3 @@ const elementRelativeY = t.clientY; | ||
const point = document.createElement("div"); | ||
point.className = "point"; | ||
point.className = "debug-iframe-relay-point point"; | ||
point.id = "touch-" + t.identifier; | ||
@@ -160,0 +161,0 @@ point.style.left = elementRelativeX - pointSize / 2 + "px"; |
{ | ||
"name": "iframe-touch-relay", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Relays touch events inside iframe, to support multi-touch on pages with multiple iframes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
9636
224