Fixed tour navigation in iPhone browsers
This commit is contained in:
parent
7211b87ec4
commit
efce8ae3ea
2 changed files with 19 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
|||
$jq(function () {
|
||||
|
||||
// Bind to scroll.
|
||||
$(window).scroll(function () {
|
||||
$(window).scroll(function() {
|
||||
//Display or hide scroll to top button.
|
||||
if ($(this).scrollTop() > 100) {
|
||||
$('#scroll-top-link').fadeIn();
|
||||
|
@ -11,7 +11,7 @@ $jq(function () {
|
|||
});
|
||||
|
||||
// Function for scrolling to top.
|
||||
$('#scroll-top-link').click(function (e) {
|
||||
$('#scroll-top-link').click(function(e) {
|
||||
$("html, body").animate({
|
||||
scrollTop: 0
|
||||
}, 600);
|
||||
|
|
Reference in a new issue