react-scrubber
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -12,2 +12,3 @@ import React, { Component } from 'react'; | ||
onScrubChange?: (value: number) => void; | ||
[key: string]: any; | ||
}; | ||
@@ -14,0 +15,0 @@ declare type Nullable<T> = T | null; |
@@ -15,2 +15,13 @@ "use strict"; | ||
})(); | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
@@ -126,3 +137,3 @@ if (mod && mod.__esModule) return mod; | ||
classes.push(className); | ||
return (react_1.default.createElement("div", { className: classes.join(' '), onMouseDown: this.handleSeekStart, onTouchStart: this.handleTouchStart, onTouchEnd: function (e) { return e.preventDefault(); }, onMouseOver: function () { return _this.setState({ hover: true }); }, onMouseLeave: function () { return _this.setState({ hover: false }); } }, | ||
return (react_1.default.createElement("div", __assign({ onMouseDown: this.handleSeekStart, onTouchStart: this.handleTouchStart, onTouchEnd: function (e) { return e.preventDefault(); }, onMouseOver: function () { return _this.setState({ hover: true }); }, onMouseLeave: function () { return _this.setState({ hover: false }); } }, this.props, { className: classes.join(' ') }), | ||
react_1.default.createElement("div", { className: "bar", ref: this.barRef }, | ||
@@ -129,0 +140,0 @@ react_1.default.createElement("div", { className: "bar__buffer", style: { width: bufferPercent + "%" } }), |
{ | ||
"name": "react-scrubber", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "React scrubber component with touch controls, styling, and lots event handlers", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25569
406