Browse Source

bug[#1018]: the context menu now pops up at the correct location

tags/v0.8.1^2
Shaun 3 years ago
parent
commit
895cb5b2da
1 changed files with 12 additions and 4 deletions
  1. +12
    -4
      src/client/ui/templates/context/context.js

+ 12
- 4
src/client/ui/templates/context/context.js View File

@@ -57,11 +57,19 @@ define([
}
});

const pos = {
left: e.clientX,
top: e.clientY
};

//Check for a customEvent, like long touch
if (e.detail) {
pos.left = e.detail.clientX;
pos.top = e.detail.clientY;
}

this.el
.css({
left: e.clientX,
top: e.clientY
})
.css(pos)
.show();
},



Loading…
Cancel
Save