SOLVED - How to set hideOnPageScroll: false for only desktop?

I have set hideOnPageScroll:true and it works everywhere but in Firefox it is hiding the toolbar when I go back to my start page instead of showing it as it do in every other browser.

So I wonder how I can set hideOnPageScroll:false for only desktops and have hideOnPageScroll:true on mobiles and tabs?

This is working to check if on an computer, but how do I set the property within it?

if (app.device.desktop){
 set hideOnPageScroll to false here....
}

Thanks a lot!

When you init the app, pass it based on condition:

var app = new Framework7({
  toolbar: {
    hideOnPageScroll: !Framework7.device.desktop,
  },
});

Great, thanks a lot Vladimir, it works :slight_smile: