Skip to content

Commit

Permalink
fix issue #91
Browse files Browse the repository at this point in the history
  • Loading branch information
zxxzzzzz committed Mar 21, 2020
1 parent ee648fb commit a007c24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cxtmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ let cxtmenu = function(params){
let origE = e.originalEvent;
let isTouch = origE.touches && origE.touches.length > 0;

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;

activeCommandI = undefined;

Expand Down

0 comments on commit a007c24

Please sign in to comment.