I have a page in jquery mobile, I want to prevent the page from scrolling but allow the user to scroll an element on the page that has overflow set to scroll. Should be noted that the reason I need this is because the page length will vary slightly, beyond 100% on some different devices.
<div data-role="page" id="noscroll>
<div data-role="content">
<div class="scrollable">
</div>
</div>
</div>
I've tried something like this but obviously this prevents the scrollable element from responding to the touchmove event.
$('#noscroll').on('touchmove', function(){
e.preventDefault();
});