spec fixes

This commit is contained in:
Phil Hughes 2017-09-22 17:22:21 +01:00
parent c4b2d1878a
commit 35d189d6a7
No known key found for this signature in database
GPG key ID: 32245528C52E0F9F

View file

@ -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];