I have a light box on my page. I would like to disable the following function when the light box is opened and enable it again when the light box is closed.
Here is the code for the function:
$.fn.fullpage.setMouseWheelScrolling = function (value){
if(value){
addMouseWheelHandler();
}else{
removeMouseWheelHandler();
}
};
HTML for the light box:
<div>
<a class="example_open" href="#example">View Popup</a>
</div>
<div id="example" class="popup">
<div class="content">abc</div>
<button class="example_close"></button>
</div>
I'm using this plugin for the light box
How can I disable / enable the function based on the light box being visible?