Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated tryMultiSelect() in map.js to fix closeObjects being incorr…
…ectly calculated: - localeCompare() return value was incorrectly being treated as a boolean instead of a number. - distance calculation was being returned a boolean instead of the difference. This change fixes stars and carriers being listed in the wrong order on the Select Objects panel. Stars and carriers should now be listed in the following order: * stars by whichever was closest to mouse/tap location. Stars of equal distance from the mouse/tap location will be ordered by name. * carriers by whichever was closest to mouse/tap location. Carriers of equal distance from the mouse/tap location will be ordered by name This behaviour aligns with what I believe was the intention of the original code.
- Loading branch information