Explorar o código

fixed: Global view - Stick the article to the top when opened (#5153)

maTh %!s(int64=3) %!d(string=hai) anos
pai
achega
1c1e63c6ad
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      p/scripts/main.js

+ 1 - 3
p/scripts/main.js

@@ -447,9 +447,7 @@ function toggleContent(new_active, old_active, skipping) {
 			// when skipping, this feels more natural if it’s not so near the top
 			new_pos -= document.body.clientHeight / 4;
 		}
-		if (relative_move) {
-			new_pos += box_to_move.scrollTop;
-		}
+
 		box_to_move.scrollTop = new_pos;
 	}