Partially regression of #36401.
Fixes modal listeners in order to:
- ignore clicks on scrollbar
-
mousedown
,mouseup
listen to scrollbar click -
click
ignores scrollbar click
-
- ignores clicks that starts inside
.modal-dialog
, but ends outside of it - react on clicks that start & end outside
.modal-dialog
closes: #36855 (closed)
alternative approach https://github.com/twbs/bootstrap/issues/36855#issuecomment-1206174935