Skip to content

Commit

Permalink
Merge pull request #120 from pattern-x/feature/fix-hotpoint
Browse files Browse the repository at this point in the history
Fix a bug that it cannot add hotpoint successfully
  • Loading branch information
hujinwei3 committed Feb 6, 2024
2 parents db14654 + 167be28 commit d73d547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/demo/dxf_6_hotpoints.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d73d547

Please sign in to comment.