Skip to content

Commit

Permalink
Don't scroll to top of the page
Browse files Browse the repository at this point in the history
This breaks in-page anchors behavior. The user should scroll the view when needed.
  • Loading branch information
berarma authored Sep 29, 2017
1 parent 57f7e64 commit 5a1c30c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions jquery.freeTheCookies.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@
$block.hide();
$block.slideDown( settings.speed, function() {

window.scrollTo( 0, 0 );

$block.bind( "click", function( e ) {
e.stopPropagation();
});
Expand Down

0 comments on commit 5a1c30c

Please sign in to comment.