Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cytoscape-cxtmenu

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cytoscape-cxtmenu - npm Package Compare versions

Comparing version 2.1.4 to 2.1.5

2

bower.json
{
"name": "cytoscape-cxtmenu",
"version": "2.1.4",
"version": "2.1.5",
"description": "A context menu for Cytoscape.js",

@@ -5,0 +5,0 @@ "main": "cytoscape-cxtmenu.js",

@@ -315,5 +315,11 @@ ;(function( $ ){ 'use strict';

var dx = e.originalEvent.pageX - offset.left - ctrx;
var dy = e.originalEvent.pageY - offset.top - ctry;
var origE = e.originalEvent;
var isTouch = origE.touches && origE.touches.length > 0;
var pageX = isTouch ? origE.touches[0].pageX : origE.pageX;
var pageY = isTouch ? origE.touches[0].pageY : origE.pageY;
var dx = pageX - offset.left - ctrx;
var dy = pageY - offset.top - ctry;
if( dx === 0 ){ dx = 0.01; }

@@ -320,0 +326,0 @@

{
"name": "cytoscape-cxtmenu",
"version": "2.1.4",
"version": "2.1.5",
"description": "A context menu for Cytoscape.js",

@@ -5,0 +5,0 @@ "main": "cytoscape-cxtmenu.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