Revert "FEATURE: when entering a topic scroll to last visited line marker (#18440)" (#18917)

This reverts commit 136174e0ee.

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.
This commit is contained in:
Jarek Radosz 2022-11-08 10:32:21 +01:00 committed by GitHub
parent 9c482a645c
commit d2ea39c932
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

View File

@ -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);
}