Skip to content

Commit

Permalink
Merge pull request #81 from jktu2870/master
Browse files Browse the repository at this point in the history
UI:Fix the 'hamburger' menu doesn't open on the page '/docs/user-guid…
  • Loading branch information
ikulikov authored Dec 7, 2017
2 parents 65c0678 + cb8a253 commit b225f53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,14 @@ var tb = (function () {
classOnCondition(body, 'fixed', windowHeight - footerHeight > bodyHeight);
}

function resetTheView() {
if (html.hasClass('open-nav')) {
function resetTheView(event) {
if (html.hasClass('open-nav') && event.type !== "scroll") {
toggleMenu();
} else {
HEADER_HEIGHT = header.outerHeight();
}

if (html.hasClass('open-toc')) {
if (html.hasClass('open-toc') && event.type !== "scroll") {
toggleToc();
}

Expand Down

0 comments on commit b225f53

Please sign in to comment.