Add check for vertical in token drag map bounds

This commit is contained in:
Mitchell McCaffrey 2021-06-03 16:06:15 +10:00
parent 597141d7fb
commit e508511ab5

View File

@ -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;
}