forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscroll.d.ts
More file actions
21 lines (15 loc) · 966 Bytes
/
scroll.d.ts
File metadata and controls
21 lines (15 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import Vue from 'vue'
export namespace scroll {
function getScrollTarget(el: Element, selector?: string | Element | Window | Vue): Element | Window;
function getScrollHeight(el: Element | Window): number;
function getScrollWidth(el: Element | Window): number;
function getScrollPosition(scrollTarget: Element | Window): number;
function getHorizontalScrollPosition(scrollTarget: Element | Window): number;
function rtlHasScrollBug(): boolean;
function animScrollTo(el: Element | Window, to: number, duration: number): void;
function animHorizontalScrollTo(el: Element | Window, to: number, duration: number): void;
function setScrollPosition(scrollTarget: Element | Window, offset: number, duration?: number): void;
function setHorizontalScrollPosition(scrollTarget: Element | Window, offset: number, duration?: number): void;
function getScrollbarWidth(): number;
function hasScrollbar(el: Element | Window, onY?: boolean): boolean;
}