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 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 `
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 11import warning from 'fbjs/lib/warning' ;
2- import { setTimeout } from 'requestanimationframe-timer' ;
2+ import { setTimeout } from 'requestanimationframe-timer' ;
33
44export function animateScroll ( id , animate ) {
55 const element = id ? document . getElementById ( id ) : document . body ;
You can’t perform that action at this time.
0 commit comments