Fix a bug that it cannot add hotpoint successfully
This commit is contained in:
@ -174,7 +174,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create hotpoint...
|
// create hotpoint...
|
||||||
if (addingHotpoint && target instanceof HTMLCanvasElement) {
|
if (addingHotpoint && (target instanceof HTMLCanvasElement || target.classList.contains("css2d-renderer"))) {
|
||||||
const location = viewer.getHitResult(event);
|
const location = viewer.getHitResult(event);
|
||||||
if (!location) {
|
if (!location) {
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user