@duckduckgo/content-scope-scripts
    Preparing search index...

    Interface SelectionMovedParams

    The reported selection moved on screen because the page scrolled or the viewport resized. At most once per animation frame, and only between a report with a rect (selectionChanged, or contextMenuOpened) and selectionCleared.

    interface SelectionMovedParams {
        devicePixelRatio: number;
        occluded?: boolean;
        rect: SelectionRect;
    }
    Index
    devicePixelRatio: number

    The page's window.devicePixelRatio, which includes page zoom.

    occluded?: boolean

    Whether other elements, such as a sticky header, cover all of the selected text that's in the viewport. False when the selection is out of the viewport, which the rect shows.