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

main
liu.shiyi 1 year ago
parent e6b657e435
commit c19df0ba80

@ -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

Loading…
Cancel
Save