Skip to main content
Oct 2, 2015 12:09 AM UTC
Solved

Keeping Navigation Bar Visible?

It seems to be possible to keep the navigation bar hidden with the Gesture API. However, I cannot figure out a consistent way to keep the navigation bar visible.

The following code will ensure that the navigation bar is visible on page load, and page show; however, as soon as the page is dragged in some way, the navigation bar automatically hides and is irretrievable.

$(document).ready(function() {

  adobeDPS.Gesture.disableNavigation([$("body")[0]]);

  adobeDPS.Gesture.toggleNavigationUI();

});

document.addEventListener("visibilitychange", function() {

  if (!document.hidden) {

    adobeDPS.Gesture.toggleNavigationUI();

  }

});

Is there a way to ensure that the navigation bar stays shown?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Neil_Enns_-_Ado
Neil_Enns_-_AdoAccepted solution
Adobe Employee
Oct 2, 2015 2:11 AM UTC

There's no way to force the navigation bar to stay up. It will go away when the reader interacts with the page to ensure the full screen is available for the reading experience.

Neil

1 reply

Neil_Enns_-_Ado
Adobe Employee
Neil_Enns_-_AdoAdobe EmployeeAccepted solution
Adobe Employee
Oct 2, 2015 2:11 AM UTC

There's no way to force the navigation bar to stay up. It will go away when the reader interacts with the page to ensure the full screen is available for the reading experience.

Neil

Translate