Skip to content

Node.js based forum software built for the modern web

Makes bookmark click scroll to last read instead of past it

bdharrington7bd26961fa6ae
diff --git a/public/src/client/topic.js b/public/src/client/topic.js
index b39d8dc77d..50a8ebe705 100644
--- a/public/src/client/topic.js
+++ b/public/src/client/topic.js
@@ -129,7 +129,7 @@ define('forum/topic', [
timeout: 0,
type: 'info',
clickfn : function() {
- navigator.scrollToPost(parseInt(bookmark, 10), true);
+ navigator.scrollToPost(parseInt(bookmark - 1, 10), true);
},
closefn : function() {
localStorage.removeItem('topic:' + tid + ':bookmark');