Home > widget-integration > FilterRender > createDragHandlers

FilterRender.createDragHandlers() method

Creates the three drag event handlers (pointerdown, pointermove, pointerup equivalents). Drag state is shared between the handlers through closure variables.

Signature:

protected createDragHandlers(ctx: RangeSliderContext): {
		onDown: (e: Event) => void;
		onMove: (e: Event) => void;
		onUp: () => void;
	};

Parameters

Parameter

Type

Description

ctx

RangeSliderContext

Returns:

{ onDown: (e: Event) => void; onMove: (e: Event) => void; onUp: () => void; }