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

**URL:** <https://meta.discourse.org/t/stop-propagating-scroll-events-when-modal-dialogs-are-visible-or-scrollable-popups-have-focus/33264>\
**Category:** UX\
**Created:** [14 Settembre 2015, 11:25pm UTC](https://meta.discourse.org/t/stop-propagating-scroll-events-when-modal-dialogs-are-visible-or-scrollable-popups-have-focus/33264 "2015-09-14T23:25:17Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [14 Settembre 2015, 11:25pm UTC](https://meta.discourse.org/t/stop-propagating-scroll-events-when-modal-dialogs-are-visible-or-scrollable-popups-have-focus/33264/1 "2015-09-14T23:25:17Z")

</div>

It would be great if opening a modal dialog (e.g. lightbox like keyboard shortcuts or smilies selector) would stop me from interacting with the topics / posts in the background. So, no scrolling or anything.

The same goes for scrollable popups like the user menu or even the preview window when writing a post. When there’s a scrollbar visible, scroll event shouldn’t bubble up the event chain and start scrolling the topic list or posts.

Scrolling in the user menu:

 ![](https://global.discourse-cdn.com/meta/original/3X/4/0/4043f1e502bdf1d882ea0ab06a9a34999265d298.gif)

Scrolling in the post preview:

 ![](https://global.discourse-cdn.com/meta/original/3X/4/9/4924ad309d73e81d09af2f134c6a371d33411e5d.gif)

Facebook does a great job in both cases:

- Open an image in a lightbox. You can’t scroll the posts in your timeline that are still visible behind the image.
- Open your notification or message popup menu and scroll to the bottom of those lists. Even if you are at the end of those lists, the posts in your timeline don’t start scrolling.

---

_[View the full topic](https://meta.discourse.org/t/stop-propagating-scroll-events-when-modal-dialogs-are-visible-or-scrollable-popups-have-focus/33264)._
