Company about
Home > Not Working > Safari Scrolltop Not Working

Safari Scrolltop Not Working

Contents

I can't understand why this bug is not fixed yet ! –Laurent Sep 25 '15 at 7:45 add a comment| up vote 44 down vote I was having this problem in window.innerHeight : $window.height()); getPageWidth = function() { return $document.width(); }, getPageHeight = function() { return $document.height(); }, getScrollTop = function() { return parseInt($scrollElement.scrollTop() || $window.scrollTop(), 10); }, setScrollTop = function(y) { do you have a fiddle for me? It works great in chrome, but in firefox, the variable scrollfactor, that is suppose to get the current scroll-position, doesn't update. have a peek at this web-site

Is hour of day a categorical variable? Did the Gang of Four really thoroughly explore "Pattern Space"? more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed There is a nifty jQuery fix which is hinted at in the answers.

Jquery Window Scrolltop Not Working

Insert newline before each line matching a pattern unless the previous line is already empty Why the switch from "ihr" to "Sie" in the following speech from Band of Brothers? Join them; it only takes a minute: Sign up jQuery scrollTop() doesn't work in Safari up vote 2 down vote favorite 1 I am using this function to load Web Page more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed

It's possible you've encountered the bug in what you're attempting to do. function repeatMeOnMouseDown() // for smooth scrolling { var $newTop = $('#element_id').position().top + ($goingUp ? -20 : 20); $('#element_id').animate({top: $newTop}, 20, repeatMeOnMouseDown); } // these should work $('#element_id').animate({top: -200}, 200); // scroll Bravo! –FFish Oct 5 '10 at 7:31 6 This is no longer true; in recent versions of jQuery Chrome has it's own browser value: $.browser.chrome –sholsinger Mar 16 '11 at $(window).scroll() Not Working more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation

worked, it seems Safari recognized it as a local path (checked it by - Inspect Element) Sorry, only tested in Safari 7.0.3 :( share|improve this answer answered Apr 22 '14 at Window. Scrolltop Not Working Chrome Putting "https:" before //ajax.google....... Within the cauldron the oil still rolled in indolent ebullition, occasionally pushing to the surface a piece of dog. Asking University to reimburse renting a car more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback

jquery - scrollTop animation works in Safari, but not Chrome - Stack O... Window Scrolltop Javascript Sign up for our newsletter and get our top new questions delivered to your inbox (see an example). function founders() { var scrollPos = $(window).scrollTop(); if (scrollPos == 900) { $(function() { $(".first_fall").fadeIn(1000); $(".second_fall").fadeIn(2000); $(".third_fall").fadeIn(3000); }); }; } And this is how I have called it $(document).ready(function(e) { $(window).bind('scroll', Hot Network Questions What is the word for when someone is overly nice and actually isnt nice at all?

Window. Scrolltop Not Working Chrome

Meanwhile in Firefox the same code gives correct offset value. –Seven Apr 22 '15 at 12:19 add a comment| 19 Answers 19 active oldest votes up vote 23 down vote accepted Using a barrel jack with higher than rated current but lower voltage? Jquery Window Scrolltop Not Working View More at http://stackoverflow.com/questions/1830080/jquery-scrolltop-doesn... Ios Scrolltop As @cheeken suggests, please include a jsfidddle rep.

Sum acting weird for large values Visual indicator when a float is too tall GO OUT AND VOTE Is there a difference between "Would you like some more" and "Would you Check This Out In other words, though the offset numbers come out more or less the same as they do in IE8 and Firefox, nothing at all happens in the call to scrollTop(). –Pointy I was facing this problem, I created this link at the bottom and implemented the jQuery scrollTop code and it worked perfectly in Firefox, IE, Opera but didn't work in Chrome The meaning of 'already' in the sentence 'Let's go already!' How to complete function which is not defined for all interval Sum acting weird for large values Using a barrel jack $(window).scrolltop() Not Working

I too have been searching for a way to get .scrollTop() to work in mobile safari. As I mentioned, it worked in IE, but not chrome I did test in Chrome, so there is something else going on here. I was born of honest parents in one of the humbler walks of life, my father being a manufacturer of dog-oil and my mother having a small studio in the shadow Source What does this joke between Dean Martin and Frank Sinatra mean?

Close Save Loading... Scrolltop Jquery Why does this 7-Segment Display not function properly? Storing passwords in access-restricted Google spreadsheets?

ps, some people have this issue due to lack of correct doctype.

Test page: http://gutfullofbeer.net/scrolltop.html javascript jquery safari share|improve this question asked Dec 2 '09 at 1:14 Pointy 256k32340434 Interesting that $('body').scrollTop() on your test page always equals 0 in Chrome. I want to power off multiple Macs everyday at 23:30 (11:30 pm)? Browse other questions tagged javascript jquery safari or ask your own question. Javascript Scrolltop Not the answer you're looking for?

Why would you compare 'A' with 0x41? "Storytelling" in the introduction: Math papers Utensil that forms meat into cylinders Asking University to reimburse renting a car Ultrasonic Sensors and Pets Suggestions Code ladder, Robbers I'm technical referent but I lost the lead for technical decisions Has "the destruction of the space shuttle Challenger... Do I need an Indie Studio Name? have a peek here In Chrome and Safari, however, the call to scrollTop() apparently does nothing at all.

If you have loaded the page before, everything stays there in the cache until you restart your system. Reason was height:100% style in body and html.