Please see nano scroll codes in DOM and layout.js. When you use pa:menu, we add <div class="nano"> to DOM on Renderer. Then, we're activating it using JS. You can try it by reducing the height of the browser. Please check in live demo.