Skip to content

Commit

Permalink
added some other changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz committed Jan 18, 2018
1 parent bf0a732 commit 9be7c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrollimate.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ var scrollimate = (function( window, $ ){
console.log('saScroll initiated');
$('[href^="#"]').click(function(){
var $this = $(this);
if( $($this.attr('href')).length ){
if( $($this.attr('href')).length && $this.attr('href') !== '#' ){
var smoothAnchorScrollTime = 500 + (Math.floor($($this.attr("href")).offset().top))/2;
var scrollEvents = "scroll mousedown wheel DOMMouseScroll mousewheel keyup touchmove";
var $page = $('html, body');
Expand Down

0 comments on commit 9be7c64

Please sign in to comment.