doAction( “enabled_scrolling” )

  1. Home
  2. Knowledge Base
  3. Codex
  4. JS API
  5. JS Actions
  6. doAction( “enabled_scrolling” )
doAction( "enabled_scrolling" );

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

Examples

// 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 );
});

Notes

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