Skip to content

Commit

Permalink
Updates docs, yarn for publish.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Jones committed Feb 8, 2018
1 parent 9c7eb0a commit 23e0157
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 23 deletions.
8 changes: 5 additions & 3 deletions dist/react-scroll-horizontal.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ var HorizontalScroll = function (_Component) {
}, {
key: 'caniscroll',
value: function caniscroll() {
var el = _reactDom2.default.findDOMNode(this.refs['hScrollParent']);
var el = _reactDom2.default.findDOMNode(this.hScrollParent);
var rect = el.getBoundingClientRect();
var scroller = el.firstElementChild;

Expand All @@ -139,7 +139,7 @@ var HorizontalScroll = function (_Component) {
this.calculate.timer = setTimeout(function () {

// Calculate the bounds of the scroll area
var el = _reactDom2.default.findDOMNode(_this3.refs['hScrollParent']);
var el = _reactDom2.default.findDOMNode(_this3.hScrollParent);

var max = el.lastElementChild.scrollWidth;
var win = el.offsetWidth;
Expand Down Expand Up @@ -194,7 +194,9 @@ var HorizontalScroll = function (_Component) {
'div',
{
onWheel: this.onScrollStart,
ref: 'hScrollParent',
ref: function ref(r) {
_this4.hScrollParent = r;
},
style: styles,
className: 'scroll-horizontal ' + (this.props.className || '')
},
Expand Down
8 changes: 4 additions & 4 deletions docs/bundle.js

Large diffs are not rendered by default.

52 changes: 36 additions & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2031,6 +2031,18 @@ faye-websocket@~0.11.0:
dependencies:
websocket-driver ">=0.5.1"

fbjs@^0.8.16:
version "0.8.16"
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.16.tgz#5e67432f550dc41b572bf55847b8aca64e5337db"
dependencies:
core-js "^1.0.0"
isomorphic-fetch "^2.1.1"
loose-envify "^1.0.0"
object-assign "^4.1.0"
promise "^7.1.1"
setimmediate "^1.0.5"
ua-parser-js "^0.7.9"

fbjs@^0.8.9:
version "0.8.12"
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.12.tgz#10b5d92f76d45575fd63a217d4ea02bea2f8ed04"
Expand Down Expand Up @@ -3724,13 +3736,21 @@ promise@^7.1.1:
dependencies:
asap "~2.0.3"

prop-types@^15.5.7, prop-types@^15.5.8, prop-types@~15.5.7:
prop-types@^15.5.8:
version "15.5.10"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.10.tgz#2797dfc3126182e3a95e3dfbb2e893ddd7456154"
dependencies:
fbjs "^0.8.9"
loose-envify "^1.3.1"

prop-types@^15.6.0:
version "15.6.0"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.0.tgz#ceaf083022fc46b4a35f69e13ef75aed0d639856"
dependencies:
fbjs "^0.8.16"
loose-envify "^1.3.1"
object-assign "^4.1.1"

proxy-addr@~1.1.3:
version "1.1.4"
resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-1.1.4.tgz#27e545f6960a44a627d9b44467e35c1b6b4ce2f3"
Expand Down Expand Up @@ -3825,14 +3845,14 @@ rc@^1.1.7:
minimist "^1.2.0"
strip-json-comments "~2.0.1"

react-dom@^15.5.4:
version "15.5.4"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.5.4.tgz#ba0c28786fd52ed7e4f2135fe0288d462aef93da"
react-dom@^16.2.0:
version "16.2.0"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.2.0.tgz#69003178601c0ca19b709b33a83369fe6124c044"
dependencies:
fbjs "^0.8.9"
fbjs "^0.8.16"
loose-envify "^1.1.0"
object-assign "^4.1.0"
prop-types "~15.5.7"
object-assign "^4.1.1"
prop-types "^15.6.0"

react-hot-api@^0.4.5:
version "0.4.7"
Expand All @@ -3845,22 +3865,22 @@ react-hot-loader@^1.3.1:
react-hot-api "^0.4.5"
source-map "^0.4.4"

react-motion@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/react-motion/-/react-motion-0.5.0.tgz#1708fc2aee552900d21c1e6bed28346863e017b6"
react-motion@^0.5.2:
version "0.5.2"
resolved "https://registry.yarnpkg.com/react-motion/-/react-motion-0.5.2.tgz#0dd3a69e411316567927917c6626551ba0607316"
dependencies:
performance-now "^0.2.0"
prop-types "^15.5.8"
raf "^3.1.0"

react@^15.5.4:
version "15.5.4"
resolved "https://registry.yarnpkg.com/react/-/react-15.5.4.tgz#fa83eb01506ab237cdc1c8c3b1cea8de012bf047"
react@^16.2.0:
version "16.2.0"
resolved "https://registry.yarnpkg.com/react/-/react-16.2.0.tgz#a31bd2dab89bff65d42134fa187f24d054c273ba"
dependencies:
fbjs "^0.8.9"
fbjs "^0.8.16"
loose-envify "^1.1.0"
object-assign "^4.1.0"
prop-types "^15.5.7"
object-assign "^4.1.1"
prop-types "^15.6.0"

read-cache@^1.0.0:
version "1.0.0"
Expand Down

0 comments on commit 23e0157

Please sign in to comment.