New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

iframe-touch-relay

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iframe-touch-relay - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

20

index.js

@@ -114,2 +114,7 @@

export function detachTouchRelay() {
window.removeEventListener("message", relayTouchMessage, false);
}
let overlay;
export function attachRelayToPage(my_zones) {

@@ -121,3 +126,3 @@ const box = document.createElement("div");

box.style.zIndex = "1000";
document.body.insertBefore(box)
document.body.insertBefore(box);
box.addEventListener("touchstart", handleStart, false);

@@ -128,2 +133,15 @@ box.addEventListener("touchend", handleEnd, false);

zones = my_zones;
overlay = box;
}
export function detachRelayToPage() {
if (!overlay) {
return;
}
overlay.removeEventListener("touchstart", handleStart, false);
overlay.removeEventListener("touchend", handleEnd, false);
overlay.removeEventListener("touchcancel", handleCancel, false);
overlay.removeEventListener("touchmove", handleMove, false);
overlay.remove();
}

2

package.json
{
"name": "iframe-touch-relay",
"version": "0.0.1",
"version": "0.0.2",
"description": "Relays touch events inside iframe, to support multi-touch on pages with multiple iframes",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc