diff --git a/public/src/client/category.js b/public/src/client/category.js index b04baa0694..11b80a59f5 100644 --- a/public/src/client/category.js +++ b/public/src/client/category.js @@ -79,7 +79,7 @@ define('forum/category', [ } Category.toTop = function() { - navigator.scrollTop(); + navigator.scrollTop(0); }; Category.toBottom = function() { diff --git a/public/src/client/topic.js b/public/src/client/topic.js index db5b7e0113..bf83b7f8cd 100644 --- a/public/src/client/topic.js +++ b/public/src/client/topic.js @@ -88,7 +88,7 @@ define('forum/topic', [ function onKeyDown(ev) { if (ev.which === 36) { // home key - navigator.scrollTop(0); + Topic.toTop(); return false; } else if (ev.which === 35) { // end key Topic.toBottom(); @@ -123,7 +123,7 @@ define('forum/topic', [ } Topic.toTop = function() { - navigator.scrollTop(); + navigator.scrollTop(0); }; Topic.toBottom = function() {