feat(加强兼容): 支持多文档
build.yaml / build (push) Successful in 44s

This commit is contained in:
xiaoqidun committed 2026-10-03 13:42:29 +08:00
1 parent 8de701dbd4
commit d37f41cd90
21 files changed
+280 -57

No files matched your search

+6
View File
@@ -536,6 +536,12 @@ export class CanvasEditor {
}
start(event) {
if (event.target === this.viewer) {
const rect = this.viewer.getBoundingClientRect();
const left = rect.left + (this.viewer.clientLeft || 0), top = rect.top + (this.viewer.clientTop || 0);
if (event.clientX < left || event.clientX >= left + this.viewer.clientWidth
|| event.clientY < top || event.clientY >= top + this.viewer.clientHeight) return;
}
if (this.nudge) {
this.commitNudge();
return;