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