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;