Interface SelectionPointerHandlerOptions

interface SelectionPointerHandlerOptions {
    consumeTouch?: boolean;
    onPointerUp?: ((event, modifiers, originalEvent) => void);
    onSelectionPointerDown: ((event, modifiers, view?, coords?, pivotCoords?, extendSelection?, scrollToAnchor?, resetCellAnchor?) => boolean | void);
    onSelectionPointerMoveOrWait?: ((event, modifiers, originalEvent, view?, coords?, pivotCoords?, scrollToAnchor?, resetCellAnchor?) => void);
    processTouch?: boolean;
    timerContinuous?: number;
    timerInitial?: number;
}

Hierarchy

Properties

consumeTouch?: boolean

If true the touch events will be consumed and not propagated.

Default

true
onPointerUp?: ((event, modifiers, originalEvent) => void)

Called when Pointer is released. This is different than the regular Pointer up in that it will be called even if the Pointer is released when outside the component.

Type declaration

    • (event, modifiers, originalEvent): void
    • Parameters

      • event: PointerEvent
      • modifiers: PointerModifiers
      • originalEvent: PointerEvent<Element>

      Returns void

onSelectionPointerDown: ((event, modifiers, view?, coords?, pivotCoords?, extendSelection?, scrollToAnchor?, resetCellAnchor?) => boolean | void)

Type declaration

    • (event, modifiers, view?, coords?, pivotCoords?, extendSelection?, scrollToAnchor?, resetCellAnchor?): boolean | void
    • Parameters

      Returns boolean | void

onSelectionPointerMoveOrWait?: ((event, modifiers, originalEvent, view?, coords?, pivotCoords?, scrollToAnchor?, resetCellAnchor?) => void)

Type declaration

    • (event, modifiers, originalEvent, view?, coords?, pivotCoords?, scrollToAnchor?, resetCellAnchor?): void
    • Parameters

      Returns void

processTouch?: boolean

If this is being used for a touch device then this should be true. This will prevent the default touch events from being fired (by calling defaultPrevent during the capture phase).

Default

false
timerContinuous?: number
timerInitial?: number