correct comments

This commit is contained in:
Sam 2015-03-05 15:09:31 +11:00
parent 5ba5a9f3d6
commit 3e5420da35
2 changed files with 3 additions and 2 deletions

View file

@ -38,7 +38,8 @@ Discourse.URL = Ember.Object.createWithMixins({
var holder = $(holderId);
if(holder.length > 0 && opts && opts.skipIfOnScreen){
// if we are on screen just scroll to post
// if we are on screen skip
var elementTop = lockon.elementTop(),
scrollTop = $(window).scrollTop(),
windowHeight = $(window).height()-offset(),

View file

@ -1,7 +1,7 @@
// Dear traveller, you are entering a zone where we are at war with the browser
// the browser is insisting on positioning scrollTop per the location it was in
// the past, we are insisting on it being where we want it to be
// The hack is just to keep trying over and over to positiong the scrollbar (up to 1 minute)
// The hack is just to keep trying over and over to position the scrollbar (up to 1 minute)
//
// The root cause is that a "refresh" on a topic page will almost never be at the
// same position it was in the past, the URL points to the post at the top of the