Skip to content

Commit

Permalink
Update core.interaction.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle committed Nov 24, 2018
1 parent f7b106a commit b9ce414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/core.interaction.js
Expand Up @@ -248,7 +248,7 @@ module.exports = {
if (options.axis !== 'xy') {
return nearestItems;
}

// We have multiple items at the same distance from the event. Now sort by smallest
if (nearestItems.length > 1) {
nearestItems.sort(function(a, b) {
Expand Down

0 comments on commit b9ce414

Please sign in to comment.