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

Params

This action has no params.

Examples

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

Notes

Out of the box, this function is called right before the show_overlay action: The overlay disables scrolling when it’s opened.

Was this article helpful?

Related Articles