Skip to content

Commit

Permalink
Block Map DOM events when the mouse is at the skybox fix maptalks#2460
Browse files Browse the repository at this point in the history
  • Loading branch information
deyihu committed Nov 15, 2024
1 parent ff2cd3c commit 54f974f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/map/Map.DomEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,10 @@ Map.include(/** @lends Map.prototype */ {
}

const eventParam = this._parseEvent(e, type);
//mouse point Beyond the visible range of the map(Sky Box Area)
if (!eventParam.coordinate && type !== 'keypress') {
return;
}
this._wrapTerrainData(eventParam);
if (isMoveEvent(type)) {
this.getRenderer().callInNextFrame(() => {
Expand Down

0 comments on commit 54f974f

Please sign in to comment.