UNPKG

infinite-scroll-svelte

Version:

Wrapper that fires events when the user has scrolled it to the beginning or end

16 lines (15 loc) 250 B
export class Locker { locked; constructor(locked) { this.locked = locked; } get isLocked() { return this.locked; } lock() { this.locked = true; } unlock() { this.locked = false; } }