Explorar o código

Fix défilement articles dépliés en vue globale

Marien Fressinaud %!s(int64=12) %!d(string=hai) anos
pai
achega
a09dc8a7c0
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      app/views/javascript/main.phtml

+ 4 - 0
app/views/javascript/main.phtml

@@ -67,6 +67,10 @@ function toggleContent (new_active, old_active) {
 			});
 		}
 	} else {
+		if(relative_move) {
+			new_pos += old_scroll;
+		}
+
 		new_scroll = $(box_to_move).scrollTop (new_pos).scrollTop ();
 	}