From 5774a9a2c8cc245059fa20593d557006edf383d2 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 27 Apr 2017 12:20:32 -0400 Subject: [PATCH] Revert offset calculation, was working poorly. --- app/assets/javascripts/discourse/lib/offset-calculator.js.es6 | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/assets/javascripts/discourse/lib/offset-calculator.js.es6 b/app/assets/javascripts/discourse/lib/offset-calculator.js.es6 index 81e97e97dd6..8903f0ee173 100644 --- a/app/assets/javascripts/discourse/lib/offset-calculator.js.es6 +++ b/app/assets/javascripts/discourse/lib/offset-calculator.js.es6 @@ -36,9 +36,6 @@ export default function offsetCalculator(y) { if (inter > ideal) { const bottom = $('#topic-bottom').offset().top; const switchPos = bottom - rawWinHeight; - if (scrollPercent >= 1.0) { - return 0; - } if (scrollTop > switchPos) { const p = Math.max(Math.min((scrollTop + inter - switchPos) / rawWinHeight, 1.0), 0.0);