From 3151c4fe99d498e2456a30041ab1aa98cd028e18 Mon Sep 17 00:00:00 2001 From: hlwwlh Date: Sun, 19 Jul 2020 14:49:37 +0000 Subject: [PATCH] fix: same position right click menu visable bug --- src/store/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index cf5d070..9dcf94c 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -52,7 +52,7 @@ const mutations = { state.currentColor = data; localStorage.setItem('color', data) }, - setRightClickMenuVisible(state,data){ + setRightClickMenuVisible(state,data) { state.rightClickMenuVisible = data; }, themeChanged(state) { @@ -98,13 +98,13 @@ const mutations = { state.editor.setValue(doc) } - state.editor.on("cursorActivity",function(){ + state.editor.on('mousedown', function() { state.rightClickMenuVisible = false }); - state.editor.on("blur",function(){ + state.editor.on('blur', function() { state.rightClickMenuVisible = false }); - state.editor.on("scroll",function(){ + state.editor.on('scroll', function() { state.rightClickMenuVisible = false });