New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-range-slider

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-range-slider - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

example/app.js

@@ -20,3 +20,3 @@ var React = window.React = require('react');

<div id='main'>
<RangeSlider value={[ '#42c6da','#3cb9ec','#42a5f5','#4a80df','#5c6bc0']} withBars cursor range={[true]}/>
<RangeSlider step={5} value={[ '#42c6da','#3cb9ec','#42a5f5','#4a80df','#5c6bc0']} withBars cursor range={[true]}/>
</div>

@@ -23,0 +23,0 @@ </div>

@@ -106,2 +106,10 @@ /*

/**
* Slider steps for every step.
* Example:
* ```
* <RangeSlider step=5 />
* ```
*/
step: PropTypes.number,
/**
* Orientation for slider, must be horizontal or vertical, default is horizontal.

@@ -212,2 +220,3 @@ * Example:

value: [],
step: 1,
defaultValue: 0,

@@ -333,3 +342,3 @@ orientation: 'horizontal',

e = this.isTouchDevice() ? e.changedTouches[e.changedTouches.length - 1] : e;
var position = e['page' + this.state.axis],
var position = (e['page' + this.state.axis]) * this.props.step,
diffPosition = position - this.state.startPosition,

@@ -336,0 +345,0 @@ diffValue = (diffPosition / this.state.upperBound) * (this.props.max - this.props.min),

{
"name": "react-range-slider",
"version": "0.1.0",
"version": "0.1.1",
"description": "A flexible slider for reactjs.",

@@ -5,0 +5,0 @@ "main": "index.js",

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