Skip to content

Node.js based forum software built for the modern web

fixes #616

psychobunny90ad08a00df5
diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js
index fd77d2084f..3a47ce901c 100644
--- a/public/src/forum/topic.js
+++ b/public/src/forum/topic.js
@@ -802,8 +802,8 @@ define(function() {
pagination.parentNode.style.display = 'block';
progressBarContainer.css('display', '');
-
- if (scrollTop < 50 && Topic.postCount > 1) {
+
+ if (scrollTop < jQuery('.posts > .post-row:first-child').height() && Topic.postCount > 1) {
localStorage.removeItem("topic:" + tid + ":bookmark");
pagination.innerHTML = '1 out of ' + Topic.postCount;
progressBar.width(0);