mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
correct comments
This commit is contained in:
parent
5ba5a9f3d6
commit
3e5420da35
2 changed files with 3 additions and 2 deletions
|
@ -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(),
|
||||
|
|
2
vendor/assets/javascripts/lock-on.js
vendored
2
vendor/assets/javascripts/lock-on.js
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue