mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
Update mCustomScrollbar.d.ts
Add more missing options
This commit is contained in:
parent
a36e6ad2f4
commit
17d5157eb8
17
mCustomScrollbar/mCustomScrollbar.d.ts
vendored
17
mCustomScrollbar/mCustomScrollbar.d.ts
vendored
@ -21,6 +21,17 @@ declare module MCustomScrollbar {
|
||||
*/
|
||||
axis?: string;
|
||||
/**
|
||||
* Always keep scrollbar(s) visible, even when there’s nothing to scroll.
|
||||
* 0 – disable (default)
|
||||
* 1 – keep dragger rail visible
|
||||
* 2 – keep all scrollbar components (dragger, rail, buttons etc.) visible
|
||||
*/
|
||||
alwaysShowScrollbar?: number;
|
||||
/**
|
||||
* Enable or disable auto-expanding the scrollbar when cursor is over or dragging the scrollbar.
|
||||
*/
|
||||
autoExpandScrollbar?: boolean;
|
||||
/**
|
||||
* Scrolling inertia (easing), value in milliseconds (0 for no scrolling inertia)
|
||||
*/
|
||||
scrollInertia?: number;
|
||||
@ -120,6 +131,12 @@ declare module MCustomScrollbar {
|
||||
* User defined callback function, triggered while scrolling
|
||||
*/
|
||||
whileScrolling?: () => void;
|
||||
/**
|
||||
* Set the behavior of calling onTotalScroll and onTotalScrollBack offsets.
|
||||
* By default, callback offsets will trigger repeatedly while content is scrolling within the offsets.
|
||||
* Set alwaysTriggerOffsets: false when you need to trigger onTotalScroll and onTotalScrollBack callbacks once, each time scroll end or beginning is reached.
|
||||
*/
|
||||
alwaysTriggerOffsets?: boolean;
|
||||
}
|
||||
/**
|
||||
* Set a scrollbar ready-to-use theme. See themes demo for all themes - http://manos.malihu.gr/tuts/custom-scrollbar-plugin/scrollbar_themes_demo.html
|
||||
|
||||
Loading…
Reference in New Issue
Block a user