mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-05 01:37:17 +00:00
fix: 修复调试拖拽时页面报错
This commit is contained in:
parent
e9beba4557
commit
bf1d7c0cb5
@ -1114,7 +1114,9 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
|
||||
|
||||
// fix target : 浏览器事件响应目标
|
||||
if (!e.target || notMyEvent) {
|
||||
e.target = this.contentDocument?.elementFromPoint(e.canvasX!, e.canvasY!);
|
||||
if (!isNaN(e.canvasX!) && !isNaN(e.canvasY!)) {
|
||||
e.target = this.contentDocument?.elementFromPoint(e.canvasX!, e.canvasY!);
|
||||
}
|
||||
}
|
||||
|
||||
// 事件已订正
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user