From d2ea39c932ec3ec07cbb7362c64ff3fb97c54a4a Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Tue, 8 Nov 2022 10:32:21 +0100 Subject: [PATCH] Revert "FEATURE: when entering a topic scroll to last visited line marker (#18440)" (#18917) This reverts commit 136174e0eec7d5cfaefac657a919c19e587fa7c9. That worked only 50% of the time (at best), as it was conflicting with other topic-view scrolling code. The reverted feature will eventually be restored as I continue to fix scroll-related issues. --- app/assets/javascripts/discourse/app/lib/url.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/assets/javascripts/discourse/app/lib/url.js b/app/assets/javascripts/discourse/app/lib/url.js index 1d979f4c56..622911c417 100644 --- a/app/assets/javascripts/discourse/app/lib/url.js +++ b/app/assets/javascripts/discourse/app/lib/url.js @@ -117,15 +117,6 @@ const DiscourseURL = EmberObject.extend({ if (!holder) { selector = holderId; - - if ( - document.getElementsByClassName( - `topic-post-visited-line post-${postNumber - 1}` - )?.length === 1 - ) { - selector = ".small-action.topic-post-visited"; - } - holder = document.querySelector(selector); }