Moveable
    Preparing search index...

    Interface ScrollableOptions

    interface ScrollableOptions {
        getScrollPosition?: (
            e: { direction: number[]; scrollContainer: HTMLElement },
        ) => number[];
        scrollable?: boolean;
        scrollContainer?: MoveableRefType<HTMLElement>;
        scrollOptions?: Partial<DragScrollOptions> | null;
        scrollThreshold?: number;
        scrollThrottleTime?: number;
    }

    Hierarchy (View Summary)

    Index
    getScrollPosition?: (
        e: { direction: number[]; scrollContainer: HTMLElement },
    ) => number[]

    Sets a function to get the scroll position.

    scrollContainer's scrollTop, scrollLeft
    
    scrollable?: boolean

    Whether or not target can be scrolled to the scroll container

    false
    
    scrollContainer?: MoveableRefType<HTMLElement>

    The container to which scroll is applied

    container
    
    scrollOptions?: Partial<DragScrollOptions> | null

    Option to scroll with dragging

    0.43.0

    const scrollOptions = {
    container: () => viewer.getContainer(),
    threshold: 20,
    getScrollPosition: () => {
    return [
    viewer.getScrollLeft({ absolute: true }),
    viewer.getScrollTop({ absolute: true }),
    ];
    },
    };
    scrollThreshold?: number

    Expand the range of the scroll check area.

    0
    
    scrollThrottleTime?: number

    Time interval that occurs when scrolling occurs when dragging is maintained If set to 0, it does not occur.

    0