cytoscape-cxtmenu
Advanced tools
Comparing version 2.8.0 to 2.8.1
@@ -332,2 +332,3 @@ /*! | ||
var panEnabled; | ||
var gestureStartEvent; | ||
@@ -358,2 +359,12 @@ var restoreZoom = function(){ | ||
if (inGesture) { | ||
$parent.hide(); | ||
inGesture = false; | ||
restoreGrab(); | ||
restoreZoom(); | ||
restorePan(); | ||
} | ||
if( typeof options.commands === 'function' ){ | ||
@@ -379,3 +390,3 @@ commands = options.commands(target); | ||
var rp, rw, rh; | ||
if( !isCy && ele.isNode() && !options.atMouse ){ | ||
if( !isCy && ele.isNode() && !ele.isParent() && !options.atMouse ){ | ||
rp = ele.renderedPosition(); | ||
@@ -411,2 +422,3 @@ rw = ele.renderedWidth(); | ||
inGesture = true; | ||
gestureStartEvent = e; | ||
}) | ||
@@ -485,3 +497,3 @@ | ||
if( select ){ | ||
select.apply( ele, [ele] ); | ||
select.apply( ele, [ele, gestureStartEvent] ); | ||
activeCommandI = undefined; | ||
@@ -488,0 +500,0 @@ } |
{ | ||
"name": "cytoscape-cxtmenu", | ||
"version": "2.8.0", | ||
"version": "2.8.1", | ||
"description": "A context menu for Cytoscape.js", | ||
@@ -5,0 +5,0 @@ "main": "cytoscape-cxtmenu.js", |
@@ -76,3 +76,4 @@ cytoscape-cxtmenu | ||
console.log( ele.id() ) // `ele` holds the reference to the active element | ||
} | ||
}, | ||
disabled: false // disables the item on true | ||
} | ||
@@ -79,0 +80,0 @@ */ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
602533
1888
115