From 6e90dd8f9131e2bfda66de5d6702d04d6c1aa804 Mon Sep 17 00:00:00 2001 From: Max Franz Date: Mon, 13 Apr 2020 15:28:23 -0400 Subject: [PATCH] Build for release --- LICENSE | 2 +- cytoscape-cxtmenu.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index be422feb..1d52488b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ -Copyright (c) 2016-2019, The Cytoscape Consortium. +Copyright (c) 2016-2020, The Cytoscape Consortium. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in diff --git a/cytoscape-cxtmenu.js b/cytoscape-cxtmenu.js index 4294ea67..3fc71cb3 100644 --- a/cytoscape-cxtmenu.js +++ b/cytoscape-cxtmenu.js @@ -538,8 +538,8 @@ var cxtmenu = function cxtmenu(params) { var origE = e.originalEvent; var isTouch = origE.touches && origE.touches.length > 0; - 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; activeCommandI = undefined;