Skip to content

Module: lib/dom/plugins/domSmithInputRange

DomSmith plugin that enhances input type="range" elements with touch-drag support. It injects pointerdown, pointermove and pointerup handlers via the nodeDef object, while preserving any pre-existing handlers. State is held in closures per element.

Version
1.0.0
Author
Frank Kudermann - alphanull
License
MIT
Source
domSmithInputRange.js, line 1

Methods

inner addNode(nodeDef) DomSmith~NodeDefinition|undefined

Hook called by DomSmith during node creation.

Parameters:
Name Type Description
nodeDef DomSmith~NodeDefinition

The original node definition object.

Returns

The patched nodeDef or undefined.

Type DomSmith~NodeDefinition | undefined
Source
domSmithInputRange.js, line 16