doAction( “disabled_scrolling” )

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

Scrolling of the document was disabled. This action is called at the end of DiviArea.Core.disableBodyScroll().

Examples

// Enable page scrolling instantly (i.e., scrolling will never be disabled)
DiviArea.addAction( 'disabled_scrolling', function() {
    DiviArea.Core.enableBodyScroll();
});

Notes

This action is usually called, right after the overlay modal was displayed via DiviArea.showOverlay().

Was this article helpful?

Related Articles