2016-10-18 11:58:42 +08:00
|
|
|
interface PerfectScrollbarOptions {
|
|
|
|
wheelSpeed?: number;
|
|
|
|
wheelPropagation?: boolean;
|
|
|
|
swipePropagation?: boolean;
|
|
|
|
minScrollbarLength?: number;
|
|
|
|
maxScrollbarLength?: number;
|
|
|
|
useBothWheelAxes?: boolean;
|
|
|
|
useKeyboard?: boolean;
|
|
|
|
suppressScrollX?: boolean;
|
|
|
|
suppressScrollY?: boolean;
|
|
|
|
scrollXMarginOffset?: number;
|
|
|
|
scrollYMarginOffset?: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface PerfectScrollbar {
|
2016-11-07 23:33:42 +08:00
|
|
|
initialize(container: HTMLElement, options?: PerfectScrollbarOptions): void;
|
|
|
|
update(container: HTMLElement): void;
|
|
|
|
destroy(container: HTMLElement): void;
|
2016-10-18 11:58:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
interface JQuery {
|
|
|
|
perfectScrollbar(options?: PerfectScrollbarOptions): JQuery;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare var ps: PerfectScrollbar;
|
|
|
|
|
|
|
|
declare module "perfect-scrollbar" {
|
|
|
|
export = ps;
|
|
|
|
}
|