mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-10 09:32:30 +03:00
beta readme and beta build
This commit is contained in:
+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