diff options
author | Phil Hughes <me@iamphill.com> | 2017-09-22 17:22:21 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-09-22 17:22:21 +0100 |
commit | 35d189d6a781b55f190b9637c133d2d5eda29ee9 (patch) | |
tree | 9d77e2fc6e5bb360dd58d390e5ac2493cebf536c | |
parent | c4b2d1878a9ce54f9f68aea5f18703c7ed3b385b (diff) | |
download | gitlab-ce-fly-out-nav-mousepos-error.tar.gz |
spec fixesfly-out-nav-mousepos-error
-rw-r--r-- | app/assets/javascripts/fly_out_nav.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/fly_out_nav.js b/app/assets/javascripts/fly_out_nav.js index a848135f8e6..98837c3b2a0 100644 --- a/app/assets/javascripts/fly_out_nav.js +++ b/app/assets/javascripts/fly_out_nav.js @@ -34,7 +34,7 @@ export const canShowActiveSubItems = (el) => { export const canShowSubItems = () => bp.getBreakpointSize() === 'sm' || bp.getBreakpointSize() === 'md' || bp.getBreakpointSize() === 'lg'; export const getHideSubItemsInterval = () => { - if (!currentOpenMenu || mousePos.length >= 1) return 0; + if (!currentOpenMenu || !mousePos.length) return 0; const currentMousePos = mousePos[mousePos.length - 1]; const prevMousePos = mousePos[0]; |