Skip to content

Commit

Permalink
Increasing package version - thank you for the fixes @JOHN-DEV
Browse files Browse the repository at this point in the history
  • Loading branch information
johndatserakis committed Jan 18, 2020
1 parent 844fd4d commit b91509a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions dist/vue-simple-context-menu.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions dist/vue-simple-context-menu.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ var script = {
menu.removeAttribute("style");
}

if ((this.menuWidth + event.clientX) >= window.innerWidth) {
menu.style.left = (event.clientX - this.menuWidth + 2) + "px";
if ((this.menuWidth + event.pageX) >= window.innerWidth) {
menu.style.left = (event.pageX - this.menuWidth + 2) + "px";
} else {
menu.style.left = (event.clientX - 2) + "px";
menu.style.left = (event.pageX - 2) + "px";
}

if ((this.menuHeight + event.clientY) >= window.innerHeight) {
menu.style.top = (event.clientY - this.menuHeight + 2) + "px";
if ((this.menuHeight + event.pageY) >= window.innerHeight) {
menu.style.top = (event.pageY - this.menuHeight + 2) + "px";
} else {
menu.style.top = (event.clientY - 2) + "px";
menu.style.top = (event.pageY - 2) + "px";
}

menu.classList.add('vue-simple-context-menu--active');
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-simple-context-menu",
"version": "3.1.9",
"version": "3.1.10",
"description": "Simple context-menu component built for Vue. Works well with both left and right clicks. Nothing too fancy, just works and is simple to use.",
"author": "John Datserakis <[email protected]>",
"license": "MIT",
Expand Down

0 comments on commit b91509a

Please sign in to comment.