On mobile devices, I have JavaScript that is preventing vertical panning on modals, resulting in users not being able to see all the modal content.
Is there a way to disable this JavaScript when a modal is displayed?
The following snippet of JavaScript appears to be causing the issue:
var my_menu = new Menu({
menuID:"my_menu",
menuItemClass:"menu",
});
When this code is removed, vertical panning works as expected!
My idea is to create a function that removes the problematic code every time a modal is shown. Does this sound like a feasible solution and how can I accomplish it?
Thank you for your help!