doAction( “enabled_scrolling” )

doAction( "enabled_scrolling" );

Scrolling of the document was enabled again. This action is called at the end of DiviArea.Core.enableBodyScroll().


// Scroll to page top when scrolling is re-enabled (i.e., when the Popup was closed)
DiviArea.addAction( 'enabled_scrolling', function() {
    jQuery( 'html, body' ).animate( { scrollTop: 0 }, 400 );


This action is usually called, right before the overlay modal is hidden. This action is triggered directly before the hide_overlay action.

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Get in touch with us