修复完成版对应的issue54,55,56

Former-commit-id: 74894882e9a2b12917de159b0be4af84c9604eda
This commit is contained in:
Lu Chaohai
2018-08-04 18:34:24 +08:00
parent 3ab1c417d0
commit 2efa1849a4
3 changed files with 13 additions and 5 deletions
@@ -47,7 +47,7 @@ export default {
},
methods: {
watchContextmenu (event) {
if (!this.$el.contains(event.target)) this.flag = false
if (!this.$el.contains(event.target) || event.button !== 0) this.flag = false
window.removeEventListener('mousedown', this.watchContextmenu)
}
},