Merge pull request #8227 from dataease/pr@dev@fix_component-click

fix(仪表板): 修复快速交替点击组件可能出现组件重叠问题
This commit is contained in:
王嘉豪 2024-02-28 17:41:03 +08:00 committed by GitHub
commit 6d847f7f9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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