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.enableBodyScrolling().

Params

This action has no params.

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

Out of the box, this function is called right before the hide_overlay action: The overlay enables scrolling again when it’s hidden.

Was this article helpful?

Related Articles