Referencing this I want to allow only vertical scroll.
The following code will disable all touch moves on a panel.
$(document).on("pageinit", "#form1", function (event) {
$("#navmenu").on("panelopen", function (event, ui) {
$("body").css("overflow", "hidden").on("touchmove", stopScroll);
});
$("#navmenu").on("panelclose", function (event, ui) {
$("body").css("overflow", "auto").off("touchmove");
});
function stopScroll() {
return false;
}
});
How can I use "overflow-x: hidden" with the stopScroll function to allow vertical scroll and disable horizontal?
Thanks.