restore scroll event if closed without close button
fortm opened this issue · comments
fortm commented
If there is left drawer and full screen modal is opened. When user clicks on drawer and navigates to other menu item without using fullscreen modal close button, the scroll is disabled on the later pages.
Only when close button is used to close the modal scroll event is restored.
Is there a way to fix this ?
$("#demo02").animatedModal({
beforeOpen: function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
},
afterClose: function() {
$('body').removeAttr('style');
}
});