fix(仪表板): 修复快速交替点击组件可能出现组件重叠问题
This commit is contained in:
parent
14ea3accd3
commit
0d5162e272
@ -263,7 +263,13 @@ export default {
|
||||
|
||||
// 如果元素没有移动,则不保存快照
|
||||
let hasMove = false
|
||||
let isFirst = true
|
||||
const move = (moveEvent) => {
|
||||
// 因此第一次点击时不触发 move 事件 防止快速交替出现的重叠问题
|
||||
if (isFirst) {
|
||||
isFirst = false
|
||||
return
|
||||
}
|
||||
hasMove = true
|
||||
const curX = moveEvent.clientX
|
||||
const curY = moveEvent.clientY
|
||||
|
||||
Loading…
Reference in New Issue
Block a user