Skip to content

Commit

Permalink
Removes screen overlay with the pop-up menu
Browse files Browse the repository at this point in the history
the `.hidden-links` popup disappears after you move the cursor out of it.
However, the white overlay on the screen does not disappear, as well as the `x` nav button on the top-right, remains as is.
Now when you click anywhere on the screen the popup appears again, and the `x` nav button turns back to a hamburger menu button.

And when you click on the hamburger menu, the popup disappears. now it's happening the exact opposite.

To remedy this, the pop up menu as well as the `x` nav button should also return back to normal once the popup disappears.

This commit fixes this issue.
  • Loading branch information
ddomdel committed Oct 17, 2022
1 parent 8a67ce8 commit 6864aee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/js/plugins/jquery.greedy-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ $(function() {
// Mouse has left, start the timer
timer = setTimeout(function() {
$hlinks.addClass('hidden');
$('.greedy-nav__toggle').removeClass('close');
}, closingTime);
}).on('mouseenter', function() {
// Mouse is back, cancel the timer
Expand Down

0 comments on commit 6864aee

Please # to comment.