diff --git a/package.json b/package.json index a7ddcf6..875b3a2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-ganttastic", - "version": "0.9.3", + "version": "0.9.4", "description": "A simple and customizable Gantt chart component for Vue.js", "main": "./dist/index.js", "scripts": { diff --git a/src/GGanttBar.vue b/src/GGanttBar.vue index d3181ef..448fccc 100644 --- a/src/GGanttBar.vue +++ b/src/GGanttBar.vue @@ -151,6 +151,10 @@ export default { this.onBarEvent(e, this) }, + onContextmenu(e){ + this.onBarEvent(e, this) + }, + onMousedown(e){ e.preventDefault() if(e.button === 2 || this.barConfig.immobile){