playcanvas
Version:
PlayCanvas WebGL game engine
31 lines (30 loc) • 695 B
TypeScript
/**
* Content does not scroll any further than its bounds.
*
* @category User Interface
*/
export const SCROLL_MODE_CLAMP: 0;
/**
* Content scrolls past its bounds and then gently bounces back.
*
* @category User Interface
*/
export const SCROLL_MODE_BOUNCE: 1;
/**
* Content can scroll forever.
*
* @category User Interface
*/
export const SCROLL_MODE_INFINITE: 2;
/**
* The scrollbar will be visible all the time.
*
* @category User Interface
*/
export const SCROLLBAR_VISIBILITY_SHOW_ALWAYS: 0;
/**
* The scrollbar will be visible only when content exceeds the size of the viewport.
*
* @category User Interface
*/
export const SCROLLBAR_VISIBILITY_SHOW_WHEN_REQUIRED: 1;