mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-05-22 06:24:08 +03:00
beta readme and beta build
This commit is contained in:
@@ -21,7 +21,7 @@ I've created this plugin because I hate ugly and space consuming scrollbars. Sim
|
||||
- High browser compatibility - <b>Firefox</b>, <b>Chrome</b>, <b>Opera</b>, <b>Edge</b>, <b>Safari 10+</b> and <b>IE 11</b>
|
||||
- Tested on various devices - <b>Mobile</b>, <b>Desktop</b> and <b>Tablet</b>
|
||||
- Tested with various (and mixed) inputs - <b>Mouse</b>, <b>touch</b> and <b>pen</b>
|
||||
- Plugin based features with <b>Treeshaking</b> - bundle only what you really need
|
||||
- <b>Treeshaking</b> - bundle only what you really need
|
||||
- Automatic update detection - <b>no polling</b>
|
||||
- Usage of latest browser features - best <b>performance</b> in new browsers
|
||||
- Bidirectional - LTR or RTL direction support
|
||||
@@ -128,8 +128,18 @@ In the above example the initialization is canceled when the native scrollbars a
|
||||
|
||||
## Options
|
||||
|
||||
OverlayScrollbars provides a lot of options which can be changed at any time:
|
||||
You can initialize OverlayScrollbars with an initial set of options, which can be changed at any time with the `options` method:
|
||||
```js
|
||||
OverlayScrollbars(document.querySelector('#myElement'), {
|
||||
overflow: {
|
||||
x: 'hidden',
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
<details><summary><h6>Options in depth</h6></summary>
|
||||
|
||||
The default options are:
|
||||
```js
|
||||
const defaultOptions = {
|
||||
paddingAbsolute: false,
|
||||
@@ -156,9 +166,7 @@ const defaultOptions = {
|
||||
};
|
||||
```
|
||||
|
||||
<details><summary><h6>Options in depth</h6></summary>
|
||||
|
||||
### paddingAbsolute
|
||||
### `paddingAbsolute`
|
||||
|
||||
| type | default |
|
||||
| :--- | :--- |
|
||||
@@ -166,7 +174,7 @@ const defaultOptions = {
|
||||
|
||||
Indicates whether the padding for the content shall be absolute.
|
||||
|
||||
### showNativeOverlaidScrollbars
|
||||
### `showNativeOverlaidScrollbars`
|
||||
|
||||
| type | default |
|
||||
| :--- | :--- |
|
||||
@@ -174,7 +182,7 @@ Indicates whether the padding for the content shall be absolute.
|
||||
|
||||
Indicates whether the native overlaid scrollbars shall be visible.
|
||||
|
||||
### update.elementEvents
|
||||
### `update.elementEvents`
|
||||
|
||||
| type | default |
|
||||
| :--- | :--- |
|
||||
@@ -182,7 +190,7 @@ Indicates whether the native overlaid scrollbars shall be visible.
|
||||
|
||||
An array of tuples. The first value in the tuple is an `selector` and the second value are `event names`. The plugin will update itself if any of the elements with the specified selector will emit any specified event. The default value can be interpreted as "The plugin will update itself if any `img` element emits an `load` event."
|
||||
|
||||
### update.debounce
|
||||
### `update.debounce`
|
||||
|
||||
| type | default |
|
||||
| :--- | :--- |
|
||||
@@ -190,11 +198,197 @@ An array of tuples. The first value in the tuple is an `selector` and the second
|
||||
|
||||
> __Note__ If 0 is used for the timeout, `requestAnimationFrame` instead of `setTimeout` is used for the debounce.
|
||||
|
||||
Debounces the `MutationObserver` which tracks changes to the content. If a tuple is passed, the first value is the timeout and second is the max wait. If only a number is passed you specify only the timeout and there is no max wait. With null there is no debounce.
|
||||
Debounces the `MutationObserver` which tracks changes to the content. If a **tuple** is passed, the first value is the timeout and second is the max wait. If only a **number** is passed you specify only the timeout and there is no max wait. With **null** there is no debounce. **Usefull to fine-tune performance.**
|
||||
|
||||
### `update.attributes`
|
||||
|
||||
| type | default |
|
||||
| :--- | :--- |
|
||||
| `string[] \| null` | `null` |
|
||||
|
||||
> __Note__ There is a base array of attributes that the `MutationObserver` always observes, even if this option is `null`.
|
||||
|
||||
An array of additional attributes that the `MutationObserver` should observe for the content.
|
||||
|
||||
### `update.ignoreMutation`
|
||||
|
||||
| type | default |
|
||||
| :--- | :--- |
|
||||
| `((mutation) => any) \| null` | `null` |
|
||||
|
||||
A function which receives a [`MutationRecord`](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord) as an argument. If the function returns a truthy value the mutation will be ignored and the plugin won't update. **Usefull to fine-tune performance.**
|
||||
|
||||
### `overflow.x`
|
||||
|
||||
| type | default |
|
||||
| :--- | :--- |
|
||||
| `string` | `'scroll'` |
|
||||
|
||||
> __Note__ Valid values are: `'hidden'`, `'scroll'`, `'visible'`, `'visible-hidden'` and `'visible-scroll'`.
|
||||
|
||||
The overflow behavior for the horizontal (x) axis.
|
||||
|
||||
### `overflow.y`
|
||||
|
||||
| type | default |
|
||||
| :--- | :--- |
|
||||
| `string` | `'scroll'` |
|
||||
|
||||
> __Note__ Valid values are: `'hidden'`, `'scroll'`, `'visible'`, `'visible-hidden'` and `'visible-scroll'`.
|
||||
|
||||
The overflow behavior for the vertical (y) axis.
|
||||
|
||||
### `scrollbars.theme`
|
||||
|
||||
| type | default |
|
||||
| :--- | :--- |
|
||||
| `string \| null` | `'os-theme-dark'` |
|
||||
|
||||
Applies the specified theme (classname) to the scrollbars.
|
||||
|
||||
### `scrollbars.visibility`
|
||||
|
||||
| type | default |
|
||||
| :--- | :--- |
|
||||
| `string` | `'auto'` |
|
||||
|
||||
> __Note__ Valid values are: `'visible'`, `'hidden'`, and `'auto'`.
|
||||
|
||||
The base visibility of the scrollbars.
|
||||
|
||||
### `scrollbars.autoHide`
|
||||
|
||||
| type | default |
|
||||
| :--- | :--- |
|
||||
| `string` | `'never'` |
|
||||
|
||||
> __Note__ Valid values are: `'never'`, `'scroll'`, `'leave'` and `'move'`.
|
||||
|
||||
The possibility to hide visible scrollbars automatically after a certain user action.
|
||||
|
||||
### `scrollbars.autoHideDelay`
|
||||
|
||||
| type | default |
|
||||
| :--- | :--- |
|
||||
| `number` | `1300` |
|
||||
|
||||
The delay in milliseconds before the scrollbars are hidden automatically.
|
||||
|
||||
### `scrollbars.dragScroll`
|
||||
|
||||
| type | default |
|
||||
| :--- | :--- |
|
||||
| `boolean` | `true` |
|
||||
|
||||
Indicates whether you can drag the scrollbar handles for scrolling.
|
||||
|
||||
### `scrollbars.clickScroll`
|
||||
|
||||
| type | default |
|
||||
| :--- | :--- |
|
||||
| `boolean` | `false` |
|
||||
|
||||
Indicates whether you can click on the scrollbar track for scrolling.
|
||||
|
||||
### `scrollbars.pointers`
|
||||
|
||||
| type | default |
|
||||
| :--- | :--- |
|
||||
| `string[] \| null` | `['mouse', 'touch', 'pen']` |
|
||||
|
||||
The [`PointerTypes`](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerType) the plugin should react to.
|
||||
|
||||
</details>
|
||||
|
||||
## Events
|
||||
|
||||
You can initialize OverlayScrollbars with an initial set of events, which can be managed at any time with the `on` and `off` methods:
|
||||
```js
|
||||
OverlayScrollbars(document.querySelector('#myElement'), {}, {
|
||||
updated(osInstance, onUpdatedArgs) {
|
||||
// ...
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
<details><summary><h6>Events in depth</h6></summary>
|
||||
|
||||
> __Note__ Every event receives the `instance` from which it was fired as the first argument. Always.
|
||||
|
||||
### `initialized`
|
||||
|
||||
| arguments | description |
|
||||
| :--- | :--- |
|
||||
| `instance` | The instance which fired the event. |
|
||||
|
||||
Is fired after all generated elements, observers and events were appended to the DOM.
|
||||
|
||||
### `updated`
|
||||
|
||||
| arguments | description |
|
||||
| :--- | :--- |
|
||||
| `instance` | The instance which fired the event. |
|
||||
| `onUpdatedArgs` | An `object` which describes the update in detail. |
|
||||
|
||||
> __Note__ If an update was triggered but nothing changed, the event won't be fired.
|
||||
|
||||
Is fired after the instace was updated.
|
||||
|
||||
### `destroyed`
|
||||
|
||||
| arguments | description |
|
||||
| :--- | :--- |
|
||||
| `instance` | The instance which fired the event. |
|
||||
| `canceled` | An `boolean` which indicates whether the initialization was canceled and thus destroyed. |
|
||||
|
||||
Is fired after all generated elements, observers and events were removed from the DOM.
|
||||
|
||||
</details>
|
||||
|
||||
## Instance Methods
|
||||
|
||||
> __Note__ For now please refer to the <b>TypeScript definitions</b> for a more detailed description.
|
||||
|
||||
```ts
|
||||
interface OverlayScrollbars {
|
||||
options(): Options;
|
||||
options(newOptions: DeepPartial<Options>): Options;
|
||||
|
||||
update(force?: boolean): OverlayScrollbars;
|
||||
|
||||
destroy(): void;
|
||||
|
||||
state(): State;
|
||||
|
||||
elements(): Elements;
|
||||
|
||||
on<N extends keyof EventListenerMap>(name: N, listener: EventListener<N>): () => void;
|
||||
on<N extends keyof EventListenerMap>(name: N, listener: EventListener<N>[]): () => void;
|
||||
|
||||
off<N extends keyof EventListenerMap>(name: N, listener: EventListener<N>): void;
|
||||
off<N extends keyof EventListenerMap>(name: N, listener: EventListener<N>[]): void;
|
||||
}
|
||||
```
|
||||
|
||||
## Static Methods
|
||||
|
||||
> __Note__ For now please refer to the <b>TypeScript definitions</b> for a more detailed description.
|
||||
|
||||
```ts
|
||||
interface OverlayScrollbarsStatic {
|
||||
(target: InitializationTarget): OverlayScrollbars | undefined;
|
||||
(
|
||||
target: InitializationTarget,
|
||||
options: DeepPartial<Options>,
|
||||
eventListeners?: InitialEventListeners
|
||||
): OverlayScrollbars;
|
||||
|
||||
plugin(plugin: Plugin | Plugin[]): void;
|
||||
valid(osInstance: any): boolean;
|
||||
env(): Environment;
|
||||
}
|
||||
```
|
||||
|
||||
## Sponsors
|
||||
<table>
|
||||
<tr>
|
||||
@@ -208,3 +402,13 @@ Debounces the `MutationObserver` which tracks changes to the content. If a tuple
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
## Future Plans
|
||||
|
||||
- Provide plugin based support for missing features. (treeshakeable)
|
||||
- Frequent updates in terms of bug-fixes and enhancements. (always use latest browser features)
|
||||
- Improve tests. (unit & browser tests)
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
Vendored
+1
-1
@@ -70,4 +70,4 @@ export const resize = (element) => {
|
||||
},
|
||||
};
|
||||
};
|
||||
//# sourceMappingURL=Resize.js.map
|
||||
//# sourceMappingURL=resize.js.map
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"Resize.js","sourceRoot":"","sources":["../src/Resize.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,OAAO,EACL,SAAS,EACT,cAAc,EACd,MAAM,EACN,KAA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aAAa,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;YACtE,EAAE,CAAC,QAAQ,EAAE,sBAAsB,EAAE,aAAa,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;YACzE,EAAE,CAAC,QAAQ,EAAE,oBAAoB,EAAE,cAAc,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;YAExE,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,KAAK,CAAC,eAAe,EAAE,CAAC;SACzB;IACH,CAAC,EACD,EAAE,QAAQ,EAAE,KAAK,EAAE,CACpB,CAAC;IAEF,OAAO;QACL,iBAAiB,CAAC,QAAwB;YACxC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACjC,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
|
||||
Vendored
+1
-1
@@ -72,4 +72,4 @@ export const iterateSelect = async (select, options) => {
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=Select.js.map
|
||||
//# sourceMappingURL=select.js.map
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../src/Select.ts"],"names":[],"mappings":"AAAA,SAAS,OAAO,CAAC,GAAQ;IACvB,OAAO,GAAG,YAAY,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC;AAC9C,CAAC;AAED,2BAA2B;AAC3B,MAAM,IAAI,GAAG,GAAS,EAAE;IACtB,OAAO,EAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,aAAgC,EAAE,EAAE,CAC5D,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAElE,MAAM,CAAC,MAAM,sBAAsB,GACjC,CACE,UAA8C,EAC9C,QAIQ,EACR,EAAE,CACJ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B;gBAC3B,MAAM,SAAS,EAAE,CAAC;aACnB;SACF;KACF;AACH,CAAC,CAAC"}
|
||||
+1
-1
@@ -27,4 +27,4 @@ export const waitForOrFailTest = (callback, options) => waitFor(callback, {
|
||||
return error;
|
||||
},
|
||||
});
|
||||
//# sourceMappingURL=TestResult.js.map
|
||||
//# sourceMappingURL=testResult.js.map
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"TestResult.js","sourceRoot":"","sources":["../src/TestResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAkB,MAAM,sBAAsB,CAAC;AAE/D,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;AAErE,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAsB,EAAE,EAAE;IACtD,MAAM,GAAG,GAAG,gBAAgB,EAAE,CAAC;IAC/B,IAAI,GAAG,EAAE;QACP,IAAI,OAAO,MAAM,KAAK,SAAS,EAAE;YAC/B,IAAI,MAAM,EAAE;gBACV,IAAI,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,QAAQ,EAAE;oBAC1C,OAAO;iBACR;aACF;YACD,GAAG,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;SACzD;aAAM;YACL,GAAG,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;SAC9B;KACF;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,GAAY,EAAE;IACtC,MAAM,GAAG,GAAG,gBAAgB,EAAE,CAAC;IAC/B,OAAO,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC;AAC9D,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAI,QAA8B,EA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OAAO;IACV,SAAS,CAAC,KAAY;QACpB,aAAa,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,KAAK,CAAC;IACf,CAAC;CACF,CAAC,CAAC"}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
export const timeout = (ms) => new Promise((resolve) => {
|
||||
setTimeout(resolve, ms);
|
||||
});
|
||||
//# sourceMappingURL=Timeout.js.map
|
||||
//# sourceMappingURL=timeout.js.map
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"Timeout.js","sourceRoot":"","sources":["../src/Timeout.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,EAAU,EAAE,EAAE,CACpC,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;IACtB,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AAC1B,CAAC,CAAC,CAAC"}
|
||||
{"version":3,"file":"timeout.js","sourceRoot":"","sources":["../src/timeout.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,EAAU,EAAE,EAAE,CACpC,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;IACtB,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AAC1B,CAAC,CAAC,CAAC"}
|
||||
Generated
+11439
-42
File diff suppressed because it is too large
Load Diff
+834
-834
File diff suppressed because it is too large
Load Diff
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -585,7 +585,7 @@ const OverlayScrollbars = function(t) {
|
||||
const S = {
|
||||
paddingAbsolute: false,
|
||||
showNativeOverlaidScrollbars: false,
|
||||
updating: {
|
||||
update: {
|
||||
elementEvents: [ [ "img", "load" ] ],
|
||||
debounce: [ 0, 33 ],
|
||||
attributes: null,
|
||||
@@ -691,7 +691,7 @@ const OverlayScrollbars = function(t) {
|
||||
({
|
||||
paddingAbsolute: it,
|
||||
showNativeOverlaidScrollbars: it,
|
||||
updating: {
|
||||
update: {
|
||||
elementEvents: at,
|
||||
attributes: at,
|
||||
debounce: [ rt.number, rt.array, rt.null ],
|
||||
@@ -1945,10 +1945,10 @@ const OverlayScrollbars = function(t) {
|
||||
}
|
||||
return t;
|
||||
}, t => {
|
||||
const [n] = t("updating.ignoreMutation");
|
||||
const [o, r] = t("updating.attributes");
|
||||
const [l, u] = t("updating.elementEvents");
|
||||
const [d, _] = t("updating.debounce");
|
||||
const [n] = t("update.ignoreMutation");
|
||||
const [o, r] = t("update.attributes");
|
||||
const [l, u] = t("update.elementEvents");
|
||||
const [d, _] = t("update.debounce");
|
||||
const h = u || r;
|
||||
const ignoreMutationFromOptions = t => isFunction(n) && n(t);
|
||||
if (h) {
|
||||
@@ -1973,8 +1973,8 @@ const OverlayScrollbars = function(t) {
|
||||
if (isArray(d)) {
|
||||
const t = d[0];
|
||||
const n = d[1];
|
||||
s = isNumber(t) ? t : false;
|
||||
e = isNumber(n) ? n : false;
|
||||
s = isNumber(t) && t;
|
||||
e = isNumber(n) && n;
|
||||
} else if (isNumber(d)) {
|
||||
s = d;
|
||||
e = false;
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -697,7 +697,7 @@ const opsStringify = t => JSON.stringify(t, ((t, n) => {
|
||||
const m = {
|
||||
paddingAbsolute: false,
|
||||
showNativeOverlaidScrollbars: false,
|
||||
updating: {
|
||||
update: {
|
||||
elementEvents: [ [ "img", "load" ] ],
|
||||
debounce: [ 0, 33 ],
|
||||
attributes: null,
|
||||
@@ -851,7 +851,7 @@ const dt = "never scroll leavemove";
|
||||
({
|
||||
paddingAbsolute: lt,
|
||||
showNativeOverlaidScrollbars: lt,
|
||||
updating: {
|
||||
update: {
|
||||
elementEvents: it,
|
||||
attributes: it,
|
||||
debounce: [ ct.number, ct.array, ct.null ],
|
||||
@@ -2167,10 +2167,10 @@ const createStructureSetupObservers = (t, n, o) => {
|
||||
}
|
||||
return t;
|
||||
}, t => {
|
||||
const [n] = t("updating.ignoreMutation");
|
||||
const [o, r] = t("updating.attributes");
|
||||
const [l, u] = t("updating.elementEvents");
|
||||
const [d, _] = t("updating.debounce");
|
||||
const [n] = t("update.ignoreMutation");
|
||||
const [o, r] = t("update.attributes");
|
||||
const [l, u] = t("update.elementEvents");
|
||||
const [d, _] = t("update.debounce");
|
||||
const h = u || r;
|
||||
const ignoreMutationFromOptions = t => isFunction(n) && n(t);
|
||||
if (h) {
|
||||
@@ -2195,8 +2195,8 @@ const createStructureSetupObservers = (t, n, o) => {
|
||||
if (isArray(d)) {
|
||||
const t = d[0];
|
||||
const n = d[1];
|
||||
s = isNumber(t) ? t : false;
|
||||
e = isNumber(n) ? n : false;
|
||||
s = isNumber(t) && t;
|
||||
e = isNumber(n) && n;
|
||||
} else if (isNumber(d)) {
|
||||
s = d;
|
||||
e = false;
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+243
-243
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -25,8 +25,8 @@ export interface Options {
|
||||
showNativeOverlaidScrollbars: boolean;
|
||||
update: {
|
||||
elementEvents: Array<[elementSelector: string, eventNames: string]> | null;
|
||||
attributes: string[] | null;
|
||||
debounce: [timeout: number, maxWait: number] | number | null; // (if tuple: [timeout: 0, maxWait: 33], if number: [timeout: number, maxWait: false]) debounce for content Changes
|
||||
attributes: string[] | null;
|
||||
ignoreMutation: ((mutation: MutationRecord) => any) | null;
|
||||
};
|
||||
overflow: {
|
||||
|
||||
@@ -92,7 +92,7 @@ export interface Elements {
|
||||
|
||||
export interface OverlayScrollbars {
|
||||
options(): Options;
|
||||
options(newOptions?: DeepPartial<Options>): Options;
|
||||
options(newOptions: DeepPartial<Options>): Options;
|
||||
|
||||
update(force?: boolean): OverlayScrollbars;
|
||||
|
||||
|
||||
+3
-3
@@ -37,10 +37,10 @@ declare type ScrollbarAutoHideBehavior = 'never' | 'scroll' | 'leave' | 'move';
|
||||
interface Options {
|
||||
paddingAbsolute: boolean;
|
||||
showNativeOverlaidScrollbars: boolean;
|
||||
updating: {
|
||||
update: {
|
||||
elementEvents: Array<[elementSelector: string, eventNames: string]> | null;
|
||||
attributes: string[] | null;
|
||||
debounce: [timeout: number, maxWait: number] | number | null;
|
||||
attributes: string[] | null;
|
||||
ignoreMutation: ((mutation: MutationRecord) => any) | null;
|
||||
};
|
||||
overflow: {
|
||||
@@ -249,7 +249,7 @@ interface Elements {
|
||||
}
|
||||
interface OverlayScrollbars {
|
||||
options(): Options;
|
||||
options(newOptions?: DeepPartial<Options>): Options;
|
||||
options(newOptions: DeepPartial<Options>): Options;
|
||||
update(force?: boolean): OverlayScrollbars;
|
||||
destroy(): void;
|
||||
state(): State;
|
||||
|
||||
Reference in New Issue
Block a user