Skip to content

Commit

Permalink
bump to version 4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bySabi committed Jan 3, 2018
1 parent ec29179 commit 4315226
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## master (unreleased)

## 4.2.0

- Implemented animation using `requestAnimationFrame`. Thanks to @kambing86 PR

## 4.1.0

- Add `disableHistory` prop for enable/disable update browser history with scroll behaviours. Default is `false`
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ _afterAnimate = () => {
### contributors
* Jean Chung <> [@jeanchung](https://github.com/jeanchung)
* Chua Kang Ming <> [@kambing86](https://github.com/kambing86)
## Contributing
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-scrollchor",
"version": "4.1.0",
"version": "4.2.0",
"description": "A React component for scroll to #hash links with smooth animations",
"files": [
"lib"
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import warning from 'fbjs/lib/warning';
import {setTimeout} from 'requestanimationframe-timer';
import { setTimeout } from 'requestanimationframe-timer';

export function animateScroll (id, animate) {
const element = id ? document.getElementById(id) : document.body;
Expand Down

0 comments on commit 4315226

Please sign in to comment.