13 lines
342 B
TypeScript
13 lines
342 B
TypeScript
|
export interface scrollLockOptions {
|
||
|
container: HTMLElement;
|
||
|
}
|
||
|
export default class ScrollLocker {
|
||
|
private lockTarget;
|
||
|
private options;
|
||
|
constructor(options?: scrollLockOptions);
|
||
|
getContainer: () => HTMLElement | undefined;
|
||
|
reLock: (options?: scrollLockOptions) => void;
|
||
|
lock: () => void;
|
||
|
unLock: () => void;
|
||
|
}
|