Skip to content

Latest commit

 

History

History
50 lines (27 loc) · 924 Bytes

File metadata and controls

50 lines (27 loc) · 924 Bytes

@hubxu/utils / Exports / dom/scroll

Module: dom/scroll

Table of contents

Functions

Functions

bottomVisible

bottomVisible(): boolean

检查页面底部是否可见(是否滚动到了底部)

Returns

boolean

Defined in

src/dom/scroll.ts:39


getScrollBarWidth

getScrollBarWidth(namespace): number

获取滚动条宽度

Parameters

Name Type Description
namespace string 命名空间,用于生成滚动条容器的类名

Returns

number

滚动条宽度(像素)

Defined in

src/dom/scroll.ts:10