File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
## master (unreleased)
2
2
3
+ ## 4.2.0
4
+
5
+ - Implemented animation using ` requestAnimationFrame ` . Thanks to @kambing86 PR
6
+
3
7
## 4.1.0
4
8
5
9
- Add ` disableHistory ` prop for enable/disable update browser history with scroll behaviours. Default is ` false `
Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ _afterAnimate = () => {
166
166
167
167
### contributors
168
168
* Jean Chung <> [@jeanchung](https://github.com/jeanchung)
169
+ * Chua Kang Ming <> [@kambing86](https://github.com/kambing86)
169
170
170
171
## Contributing
171
172
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-scrollchor" ,
3
- "version" : " 4.1 .0" ,
3
+ "version" : " 4.2 .0" ,
4
4
"description" : " A React component for scroll to #hash links with smooth animations" ,
5
5
"files" : [
6
6
" lib"
Original file line number Diff line number Diff line change 1
1
import warning from 'fbjs/lib/warning' ;
2
- import { setTimeout } from 'requestanimationframe-timer' ;
2
+ import { setTimeout } from 'requestanimationframe-timer' ;
3
3
4
4
export function animateScroll ( id , animate ) {
5
5
const element = id ? document . getElementById ( id ) : document . body ;
You can’t perform that action at this time.
0 commit comments