Scrollbar

Вспомогательные функции для отключения прокрутки страницы. Helper functions to disable page scrolling.

Use Permalink to "Use"

ts
import { lockScrollbar, unlockScrollbar } from 'proxima-vue/utils/scrollbar';

// body is scrollable

lockScrollbar(); // <- body is blocked

lockScrollbar(); // <- body is blocked

unlockScrollbar(); // <- body is still blocked because it was locked twice

unlockScrollbar(); // <- body is now scrollable
View source on GitHub