mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
seems to work better for long posts
This commit is contained in:
@@ -1138,11 +1138,7 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
||||
var elTop = el.offset().top;
|
||||
var height = Math.floor(el.height());
|
||||
var elBottom = elTop + height;
|
||||
|
||||
return ((elBottom >= scrollTop) &&
|
||||
(elTop <= scrollBottom) &&
|
||||
(elBottom <= scrollBottom) &&
|
||||
(elTop >= scrollTop));
|
||||
return !(elTop > scrollBottom || elBottom < scrollTop);
|
||||
}
|
||||
|
||||
Topic.scrollToPost = function(pid, duration, offset) {
|
||||
|
||||
Reference in New Issue
Block a user