Преглед на файлове

修复UI断点与折叠点击区域重叠的问题

mxd преди 4 години
родител
ревизия
40c9cb87b1
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      src/main/resources/magicapi-support/js/index.js

+ 4 - 1
src/main/resources/magicapi-support/js/index.js

@@ -1386,7 +1386,10 @@ var MagicEditor = {
         })
         var _this = this;
         this.scriptEditor.onMouseDown(function(e){
-            if (e.target.detail && e.target.detail.offsetX && e.target.detail.offsetX >= 0 && e.target.detail.offsetX <= 60) {
+            if($(e.target.element).hasClass("codicon")){
+                return;
+            }
+            if (e.target.detail && e.target.detail.offsetX && e.target.detail.offsetX >= 0 && e.target.detail.offsetX <= 90) {
                 var line = e.target.position.lineNumber;
                 if (_this.scriptEditor.getModel().getLineContent(line).trim() === '') {
                     return