Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
published v1.0.24
Browse files Browse the repository at this point in the history
  • Loading branch information
fisshy committed Jul 14, 2016
1 parent 62de8f4 commit 57522ac
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,9 @@ module.exports = Helpers.Scroll(Link);

#### Changelog

> v1.0.23
> v1.0.24
- you can now pass any native property to Link/Element
- patched minor bugs from v1.0.21 > v1.0.24

> v1.0.21
- scrollToBottom and scrollMore now works inside a container.
Expand Down
3 changes: 2 additions & 1 deletion build/npm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,9 @@ module.exports = Helpers.Scroll(Link);

#### Changelog

> v1.0.23
> v1.0.24
- you can now pass any native property to Link/Element
- patched minor bugs from v1.0.21 > v1.0.24

> v1.0.21
- scrollToBottom and scrollMore now works inside a container.
Expand Down
5 changes: 2 additions & 3 deletions build/npm/lib/mixins/animate-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ var animateTopScroll = function(timestamp) {

__deltaTop = Math.round(__targetPositionY - __startPositionY);


if (__start === null) {
__start = timestamp;
}
Expand Down Expand Up @@ -126,8 +125,8 @@ var animateTopScroll = function(timestamp) {
};

var setContainer = function (options) {
var containerId = options.containerId;
__containerElement = containerId ? document.getElementById(containerId) : null;
if(!options || !options.containerId) { return; }
__containerElement = document.getElementById(options.containerId);
};

var startAnimateTopScroll = function(y, options, to, target) {
Expand Down
2 changes: 1 addition & 1 deletion build/npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-scroll",
"version": "1.0.23",
"version": "1.0.24",
"description": "A scroll component for React.js",
"main": "lib",
"repository": {
Expand Down
1 change: 1 addition & 0 deletions examples/basic/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ var Section = React.createClass({
<li><DirectLink className="test6" to="anchor" spy={true} smooth={true} duration={500}>Test 6 (anchor)</DirectLink></li>
<li><Link activeClass="active" className="test7" to="test7" spy={true} smooth={true} duration={durationFn}>Test 7 (duration and container)</Link></li>
<li> <a onClick={() => scroll.scrollTo(100)}>Scroll To 100!</a></li>
<li> <a onClick={() => scroll.scrollToBottom()}>Scroll To Bottom</a></li>
<li> <a onClick={() => scroll.scrollMore(500)}>Scroll 500 More!</a></li>
<li> <a onClick={() => scroll.scrollMore(1000, { delay : 1500 })}>Scroll 1000 More! ( delay ) </a></li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-scroll",
"version": "1.0.23",
"version": "1.0.24",
"description": "A scroll component for React.js",
"main": "modules",
"repository": {
Expand Down

0 comments on commit 57522ac

Please sign in to comment.