How to disable navigation bar hide and show block

I’m building an app for a test. so that the examinees don’t cheat, what if the navigation is visible false, then opening the navigation bar by scrolling from the bottom of the screen immediately opens Screen 3?