Snippets: Disable Scroll Using jQuery

Most developers probably wouldn't want to disable scroll on their pages, but of course, there are always exceptions to any rule, and there are a number of reasons that scroll may need to be disabled. It could be for design or functionality reasons, or it could just be the result of a click event or some other trigger. If you're looking to disable scroll, all you need to use is this small snippet of jQuery code:

$(document).bind("touchmove", function(event){

That's all it takes! 3 little lines of code and scrolling will be completely disabled on your site. Add it to your next project to see how it works in action, but make sure you remember to remove it if you want scroll functionality to be accessible to your users.

Responsive Menu
Add more content here...