I am using JQuery Mobile version 4.1a and using:
data-position=\"fixed\"
on both header and footer.
When I scroll the content it di
$.mobile.fixedToolbars.setTouchToggleEnabled(false) didn't work for me but editing the javascript-jquery.mobile.iscroll file as follows seems to solve the problem with the iscroll solution proposed by Satch3000 and queried by user418775.
changing the line (99) ...
if ($.mobile.activePage.data("iscroll") == "enable") {
to...
if (($.mobile.activePage) && ($.mobile.activePage.data("iscroll") == "enable")) {