Creating a solution for mobile web page...
Implement a function to disable the scroll event
var preventTouchScroll = function(event){event.preventDefault();};
Attach this function to an element so that when it is touched, scrolling on the document will be disabled.
$('#your_element').click(function()
{$(document).bind('touchmove', preventTouchScroll)});
document.ontouchmove=function(e){e.preventDefault();} //Include this for iOS Safari compatibility, tested on iOS 12.x
Remove the binding
$('#your_element').click(function()
{$(document).unbind('touchmove', preventTouchScroll)});
document.ontouchmove=function(e){return true;} //Restore default behavior in iOS Safari
Hopefully, this guide is helpful!