From 167be2859a06f1ed46b48261c16d2ce21abe421b Mon Sep 17 00:00:00 2001 From: yanzexuan Date: Sat, 11 Nov 2023 13:30:09 +0800 Subject: [PATCH] Fix a bug that it cannot add hotpoint successfully --- public/demo/dxf_6_hotpoints.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/demo/dxf_6_hotpoints.html b/public/demo/dxf_6_hotpoints.html index 7a7e6e6..4a33868 100644 --- a/public/demo/dxf_6_hotpoints.html +++ b/public/demo/dxf_6_hotpoints.html @@ -174,7 +174,7 @@ } // create hotpoint... - if (addingHotpoint && target instanceof HTMLCanvasElement) { + if (addingHotpoint && (target instanceof HTMLCanvasElement || target.classList.contains("css2d-renderer"))) { const location = viewer.getHitResult(event); if (!location) { return;