Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rangetouch

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rangetouch

A super tiny library to make input type='range' sliders work better on touch devices

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
98K
decreased by-19.95%
Maintainers
1
Weekly downloads
 
Created

What is rangetouch?

The rangetouch npm package is designed to enhance the usability of HTML range inputs on touch devices. It provides a more intuitive and responsive experience for users interacting with sliders and other range-based inputs on touchscreens.

What are rangetouch's main functionalities?

Initialize RangeTouch

This feature initializes RangeTouch on specified range inputs. By calling `RangeTouch.set` with a selector, you can enhance the touch experience for those elements.

const RangeTouch = require('rangetouch');
RangeTouch.set('.range-input');

Custom Configuration

This feature allows you to customize the behavior of RangeTouch. For example, you can set the `thumbWidth` to adjust the width of the slider thumb, making it easier to interact with on touch devices.

const RangeTouch = require('rangetouch');
RangeTouch.set('.range-input', { thumbWidth: 20 });

Destroy RangeTouch

This feature allows you to remove the RangeTouch enhancements from specified range inputs. By calling `RangeTouch.destroy` with a selector, you can revert the elements back to their original behavior.

const RangeTouch = require('rangetouch');
RangeTouch.destroy('.range-input');

Other packages similar to rangetouch

Keywords

FAQs

Package last updated on 02 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc