How to block mouse scrolling events such as mui frames penetrating through the mask layer?

such as the title.
as shown below, when the B mask layer pops up, press and hold the left mouse button in area B, and the content of the main content area A will move. How to block it?
Note: the button in the A content area cannot be clicked at this time (the normal click event has been blocked).

Mui
Jun.03,2021

to solve this problem, make the opposite setting when you turn it on and off.

    $("-sharpA").css({"overflow": "scroll"});
    $("-sharpB").css({"overflow": "hidden"});
Menu