Skip to content

Commit

Permalink
Build for release
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkfranz committed Sep 9, 2019
1 parent b6e2008 commit e6430ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cytoscape-cxtmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
var pageY = isTouch ? origE.touches[0].pageY : origE.pageY;
var pageX = (isTouch ? origE.touches[0].pageX : origE.pageX) - window.scrollX;
var pageY = (isTouch ? origE.touches[0].pageY : origE.pageY) - window.scrollY;

activeCommandI = undefined;

Expand Down

0 comments on commit e6430ec

Please sign in to comment.