This feels like a bug.
When you create a modal on a site that has content through which you can scroll, the scrollbar exists on the right as expected. However, if you click and drag that scrollbar to scroll through the content, it will close the modal.
I’m looking for a fix to this behavior so that users who can’t or don’t use trackpads or scroll wheels can scroll through modal content.