From fd854b134deb51464900d96cb45aee381d1d0d18 Mon Sep 17 00:00:00 2001 From: RaceProUK Date: Mon, 21 Mar 2016 19:49:35 +0000 Subject: [PATCH] Allow for a little scrolling before dismissing bookmark alert This is just in case someone scrolls a little accidentally; the alert remains so they can still follow it if they want to --- public/src/client/topic.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/src/client/topic.js b/public/src/client/topic.js index c3e228f9ae..7a989f96aa 100644 --- a/public/src/client/topic.js +++ b/public/src/client/topic.js @@ -221,7 +221,9 @@ define('forum/topic', [ } else { span.html('').hide(); } - app.removeAlert('bookmark'); + if ($(window).scrollTop() > 300) { + app.removeAlert('bookmark'); + } } Topic.calculateIndex = function(index, elementCount) {