Using jQuery, I would like to disable scrolling of the body:
My idea is to:
body{ overflow: hidden;}
You can attach a function to scroll events and prevent its default behaviour.
var $window = $(window); $window.on("mousewheel DOMMouseScroll", onMouseWheel); function onMouseWheel(e) { e.preventDefault(); }
https://jsfiddle.net/22cLw9em/