Browse Source

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

liu.shiyi 1 year ago
parent
commit
c19df0ba80
1 changed files with 3 additions and 3 deletions
  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
         return
       }
       }
       newTime = new Date()
       newTime = new Date()
-      if (newTime - time > 300) {
-        this.isSelecting = true
-      }
+      // if (newTime - time > 300) {
+      this.isSelecting = true
+      // }
       if (this.isSelecting) {
       if (this.isSelecting) {
         if (typeof event.target.className === 'string' && event.target.className.indexOf('mouse-select-wrap') !== -1) {
         if (typeof event.target.className === 'string' && event.target.className.indexOf('mouse-select-wrap') !== -1) {
           this.endX = event.offsetX
           this.endX = event.offsetX