Skip to content

Commit 4315226

Browse files
committed
bump to version 4.2.0
1 parent ec29179 commit 4315226

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## master (unreleased)
22

3+
## 4.2.0
4+
5+
- Implemented animation using `requestAnimationFrame`. Thanks to @kambing86 PR
6+
37
## 4.1.0
48

59
- Add `disableHistory` prop for enable/disable update browser history with scroll behaviours. Default is `false`

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ _afterAnimate = () => {
166166
167167
### contributors
168168
* Jean Chung <> [@jeanchung](https://github.com/jeanchung)
169+
* Chua Kang Ming <> [@kambing86](https://github.com/kambing86)
169170
170171
## Contributing
171172

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-scrollchor",
3-
"version": "4.1.0",
3+
"version": "4.2.0",
44
"description": "A React component for scroll to #hash links with smooth animations",
55
"files": [
66
"lib"

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import warning from 'fbjs/lib/warning';
2-
import {setTimeout} from 'requestanimationframe-timer';
2+
import { setTimeout } from 'requestanimationframe-timer';
33

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

0 commit comments

Comments
 (0)