浏览代码

fix:优化框选较快的情况下存在框选错位的问题

liu.shiyi 1 年之前
父节点
当前提交
c19df0ba80
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      data-room-ui/packages/BigScreenDesign/MouseSelect/index.vue

+ 3 - 3
data-room-ui/packages/BigScreenDesign/MouseSelect/index.vue

@@ -112,9 +112,9 @@ export default {
         return
       }
       newTime = new Date()
-      if (newTime - time > 300) {
-        this.isSelecting = true
-      }
+      // if (newTime - time > 300) {
+      this.isSelecting = true
+      // }
       if (this.isSelecting) {
         if (typeof event.target.className === 'string' && event.target.className.indexOf('mouse-select-wrap') !== -1) {
           this.endX = event.offsetX