Files
old-ribica/node_modules/react-router/lib/behaviors/ScrollToTopBehavior.js

15 lines
270 B
JavaScript
Raw Normal View History

2015-07-26 19:10:16 +02:00
/**
* A scroll behavior that always scrolls to the top of the page
* after a transition.
*/
"use strict";
var ScrollToTopBehavior = {
updateScrollPosition: function updateScrollPosition() {
window.scrollTo(0, 0);
}
};
module.exports = ScrollToTopBehavior;