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
- License
- MIT
- Source
- domSmithInputRange.js, line 1
Methods
inner addNode(nodeDef) → DomSmith~NodeDefinition|undefined
Hook called by DomSmith during node creation.
| 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