Socket
Socket
Sign inDemoInstall

rc-slider

Package Overview
Dependencies
Maintainers
2
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-slider - npm Package Compare versions

Comparing version 1.4.0 to 1.4.3

7

lib/Slider.js

@@ -59,3 +59,3 @@ 'use strict';

value = (props.max - props.min) / (marksLen - 1) * index;
value = value.toFixed(5);
value = value.toFixed(5) / 1;
}

@@ -141,3 +141,3 @@ return value;

onMouseMove: function onMouseMove(e) {
var position = e.pageX;
var position = e.pageX || e.clientX + document.documentElement.scrollLeft; // to compat ie8
this.onMove(e, position);

@@ -192,3 +192,3 @@ },

onSliderMouseDown: function onSliderMouseDown(e) {
var position = e.pageX;
var position = e.pageX || e.clientX + document.documentElement.scrollLeft; // to compat ie8
var value = this._calValueByPos(position);

@@ -330,2 +330,3 @@ this._triggerEvents('onChange', value);

events = {
onClick: this.showTooltip.bind(this, true),
onMouseEnter: this.showTooltip.bind(this, true),

@@ -332,0 +333,0 @@ onMouseLeave: this.showTooltip.bind(this, false)

{
"name": "rc-slider",
"version": "1.4.0",
"version": "1.4.3",
"description": "slider ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

@@ -103,2 +103,8 @@ # rc-slider

</tr>
<tr>
<td>value</td>
<td>number</td>
<td></td>
<td>Determines the current positions of the handles.</td>
</tr>
<tr>

@@ -123,2 +129,8 @@ <td>marks</td>

<tr>
<td>index</td>
<td>number</td>
<td></td>
<td>For step or marks slider, determine current positions of the handles.</td>
</tr>
<tr>
<td>disabled</td>

@@ -143,3 +155,3 @@ <td>boolean</td>

online example: http://react-component.github.io/slider/examples/
online example: http://react-component.github.io/slider/

@@ -146,0 +158,0 @@ ## Test Case

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