Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Nielswps
Copy link
Contributor

Fix to avoid locations being stacked on top of each other

@Nielswps Nielswps self-assigned this Jul 19, 2020
@Nielswps Nielswps linked an issue Jul 20, 2020 that may be closed by this pull request
@Nielswps Nielswps marked this pull request as ready for review July 20, 2020 11:57
@Nielswps
Copy link
Contributor Author

I am not sure if this is an efficient enough solution, as potentially all locations within the given component are being checked multiple times every time a location is moved, but I have tried adding about 30 locations to a component and it does not seem to harm performance in any major way. Neither when adding/dragging a new location away from the other locations nor when adding/dragging one in the middle of them

@yrke yrke merged commit a2c1917 into DEIS-Tools:master Jul 27, 2020
@Nielswps Nielswps deleted the locationDistance branch July 27, 2020 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make it impossible to place two locations on top of each other

2 participants