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