Stop propagating scroll events when modal dialogs are visible or scrollable popups have focus

Looks like Stack Overflow has the exact same issue, Scroll to bottom of inbox, and it just keeps on scrolling the page when done. (when using mouse wheel)

Perhaps @balpha has some ideas on how/if a fix like this should be implemented? I wonder if facebook go so far as to change positioning on the entire page

「いいね!」 2