diff --git a/src/helpers/token.js b/src/helpers/token.js index 1cf083c..5c8a137 100644 --- a/src/helpers/token.js +++ b/src/helpers/token.js @@ -124,7 +124,10 @@ export function clientPositionToMapPosition( // Check map bounds if ( checkMapBounds && - (clientPosition.x < mapRect.left || clientPosition.x > mapRect.right) + (clientPosition.x < mapRect.left || + clientPosition.x > mapRect.right || + clientPosition.y < mapRect.top || + clientPosition.y > mapRect.bottom) ) { return; }