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

main
liu.shiyi
parent e6b657e435
commit c19df0ba80

@ -112,9 +112,9 @@ export default {
return return
} }
newTime = new Date() newTime = new Date()
if (newTime - time > 300) { // if (newTime - time > 300) {
this.isSelecting = true 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

Loading…
Cancel
Save