Skip to content
Snippets Groups Projects
downshift+1.31.16.patch 937 B
diff --git a/node_modules/downshift/dist/downshift.esm.js b/node_modules/downshift/dist/downshift.esm.js
index f39a298..da7b6f5 100644
--- a/node_modules/downshift/dist/downshift.esm.js
+++ b/node_modules/downshift/dist/downshift.esm.js
@@ -1200,10 +1200,15 @@ var _initialiseProps = function () {
       // onMouseMove is used over onMouseEnter here. onMouseMove
       // is only triggered on actual mouse movement while onMouseEnter
       // can fire on DOM changes, interrupting keyboard navigation
-      onMouseMove: composeEventHandlers(onMouseMove, function () {
+      onMouseMove: composeEventHandlers(onMouseMove, function (e) {
         if (index === _this4.getState().highlightedIndex) {
           return;
         }
+
+        if(e.movementX === 0 && e.movementY === 0) {
+          return;
+        }
+
         _this4.setHighlightedIndex(index, {
           type: Downshift.stateChangeTypes.itemMouseEnter
         });