Fix a bug that it cannot add hotpoint successfully
This commit is contained in:
		@ -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;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user