This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var smoothScrolling = { | |
// add smooth vertical scrolling to internal anchors | |
init: function() { | |
// if new native support available we don't need any of this | |
var isSmoothScrollSupported = 'scrollBehavior' in document.documentElement.style; | |
if (isSmoothScrollSupported) { | |
return; | |
} | |
this.bindEvents(); |