I use twitter bootstrap 3. I added a fixed top navigator. I have buttons on the navigation bar. When the user clicks a button, a drop-down menu opens. For desktop users, this is normal. But for mobile users, when the user scrolls the drop-down links, the page in the back also scrolls.
Is it possible to disable the scrolling of the background page when the user scrolls the dropdown links?
Fiddle: http://jsfiddle.net/mavent/2g5Uc/1/
When the user touches the drop-down part and touches like a green arrow, scrolling appears on this page as a red arrow: 
<nav class="navbar navbar-inverse navbar-fixed-top visible-xs" role="navigation"> <div class="navbar-header" style="text-align:center;"> ....... </div>
Edit: I checked which , which, and what .
Edit: This does not work. This stops the page scrolling.
$('#my_navbar_div').bind('touchmove', function(event) { event.preventDefault(); });
This does not work. Nothing has changed in behavior:
$('#my_navbar_div').hover(function() { $(document).bind('touchstart touchmove',function(){ $("body").css("overflow","hidden"); }); }, function() { $(document).unbind('touchstart touchmove'); });
source share