lockScroll

Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.dom.scroll

Lock the scroll of the page

Params

  1. $target”window”HTMLElement|Window

    The target on which to lock the scroll (default to window)

Example

import { lockScroll } from '@blackbyte/sugar/dom'
lockScroll();

Todo

  • testsnormal