cytoscape-cxtmenu
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -541,4 +541,4 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
var pageX = (isTouch ? origE.touches[0].pageX : origE.pageX) - window.scrollX; | ||
var pageY = (isTouch ? origE.touches[0].pageY : origE.pageY) - window.scrollY; | ||
var pageX = (isTouch ? origE.touches[0].pageX : origE.pageX) - window.pageXOffset; | ||
var pageY = (isTouch ? origE.touches[0].pageY : origE.pageY) - window.pageYOffset; | ||
@@ -545,0 +545,0 @@ activeCommandI = undefined; |
{ | ||
"name": "cytoscape-cxtmenu", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "A circular, swipeable context menu extension for Cytoscape.js", | ||
@@ -5,0 +5,0 @@ "main": "cytoscape-cxtmenu.js", |
@@ -81,3 +81,3 @@ cytoscape-cxtmenu | ||
fillColor: 'rgba(200, 200, 200, 0.75)', // optional: custom background color for item | ||
content: 'a command name' // html/text content to be displayed in the menu | ||
content: 'a command name', // html/text content to be displayed in the menu | ||
contentStyle: {}, // css key:value pairs to set the command's css in js if you want | ||
@@ -84,0 +84,0 @@ select: function(ele){ // a function to execute when the command is selected |
@@ -451,4 +451,4 @@ const defaults = require('./defaults'); | ||
let pageX = (isTouch ? origE.touches[0].pageX : origE.pageX) - window.scrollX; | ||
let pageY = (isTouch ? origE.touches[0].pageY : origE.pageY) - window.scrollY; | ||
let pageX = (isTouch ? origE.touches[0].pageX : origE.pageX) - window.pageXOffset; | ||
let pageY = (isTouch ? origE.touches[0].pageY : origE.pageY) - window.pageYOffset; | ||
@@ -455,0 +455,0 @@ activeCommandI = undefined; |
Sorry, the diff of this file is not supported yet
83954
18