There are a number of ways for a user to scroll a browser window, but there's one I find particularly irksome and would like to suppress. This would be where you click with the mouse and then drag the mouse outside of the window and it scrolls in the direction the mouse has been dragged.
This behavior is particularly annoying because the page I'm working on does things on both mousedown and mousemove, so its fairly easy for the user to be in the middle of this operation and slip off the page and screw up what they were doing. I can't just overflow: hidden because I do want the user to be able to scroll, just not by this particular method.
I could imagine lots of apps where this is a problem; for instance, click and drag away from center to zoom on the current frame of content with existing scrollbars might even want to support the mouse leaving the window via capture-mode events, but this will cause it to scroll!
The only thing I can think to do is do { overflow: hidden } and then implement custom scrollbars, but custom scrollbars tend to suck. I've been searching around for awhile and trying different things, but haven't seen a solution to this. Pardon if it's a dupe and I just didn't find the original.