Skip to content

Commit

Permalink
Fix #1017 map: hotspot click when the map is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Jul 20, 2023
1 parent 11460f3 commit fe0897b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/map-plugin/src/components/MapComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export class MapComponent extends AbstractComponent {
if (this.state.mousedown) {
this.__move(event.clientX, event.clientY);
e.stopPropagation();
} else {
} else if (!this.state.collapsed) {
this.__handleHotspots(event.clientX, event.clientY);
}
break;
Expand Down Expand Up @@ -205,7 +205,9 @@ export class MapComponent extends AbstractComponent {
this.state.mousedown = false;
e.stopPropagation();
}
this.__clickHotspot(mouse.clientX, mouse.clientY);
if (!this.state.collapsed) {
this.__clickHotspot(mouse.clientX, mouse.clientY);
}
break;
}
case 'wheel': {
Expand Down

0 comments on commit fe0897b

Please sign in to comment.