diff --git a/src/core/core.interaction.js b/src/core/core.interaction.js index 30121085fa0..1e5dbc4794e 100644 --- a/src/core/core.interaction.js +++ b/src/core/core.interaction.js @@ -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) {