Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit 082a3a8

Browse files
authored
Merge pull request #21 from willgates/master
Fix failing tests in PhantomJS
2 parents 8aa5577 + 9d86d12 commit 082a3a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/contextmenu-layer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ export default function(identifier, configure) {
7676

7777
event.preventDefault();
7878

79-
const xPos = event.clientX || event.touches[0].pageX,
80-
yPos = event.clientY || event.touches[0].pageY;
79+
const xPos = event.clientX || (event.touches && event.touches[0].pageX),
80+
yPos = event.clientY || (event.touches && event.touches[0].pageY);
8181

8282
store.dispatch({
8383
type: "SET_PARAMS",

0 commit comments

Comments
 (0)