Skip to content

Commit

Permalink
UI:Fix the 'hamburger' menu doesn't open on the page '/docs/user-guid…
Browse files Browse the repository at this point in the history
…e/contribution/widgets-development/' when scroll is in the middle
  • Loading branch information
jktu2870 committed Dec 7, 2017
1 parent 65c0678 commit cb8a253
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 cb8a253

Please sign in to comment.