Add check for vertical in token drag map bounds
This commit is contained in:
parent
597141d7fb
commit
e508511ab5
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user