Skip to content

Commit

Permalink
Move react-motion into dependencies
Browse files Browse the repository at this point in the history
Resolve 'react-motion' by adding it to project dependencies. Fixes #8.

Added npm-shrinkwrap.
  • Loading branch information
josephdburdick committed Sep 7, 2016
1 parent 3be0c68 commit f1b0d9e
Show file tree
Hide file tree
Showing 3 changed files with 3,689 additions and 5 deletions.
6 changes: 3 additions & 3 deletions dist/react-scroll-horizontal.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var HorizontalScroll = function (_Component) {
function HorizontalScroll(props) {
_classCallCheck(this, HorizontalScroll);

var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(HorizontalScroll).call(this, props));
var _this = _possibleConstructorReturn(this, (HorizontalScroll.__proto__ || Object.getPrototypeOf(HorizontalScroll)).call(this, props));

_this.state = { animValues: 0 };

Expand Down Expand Up @@ -91,7 +91,7 @@ var HorizontalScroll = function (_Component) {
e.preventDefault();
// If scrolling on x axis, change to y axis
// Otherwise just get the y deltas
// Basically, this for Apple mice that allow
// Basically, this for Apple mice that allow
// horizontal scrolling by default
var rawData = e.deltaY ? e.deltaY : e.deltaX;
var mouseY = Math.floor(rawData);
Expand Down Expand Up @@ -189,4 +189,4 @@ HorizontalScroll.defaultProps = {
pageLock: false,
config: null,
style: { width: '100%', height: '100%' }
};
};
Loading

0 comments on commit f1b0d9e

Please sign in to comment.