From 18b097ff9b4ab66f51328b6a4e256f91c94ecd91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 5 Feb 2012 19:19:27 +0100 Subject: [PATCH] Reset oldScrollTop to null when clearing the chat --- file/js/TimWolla.WCF.Chat.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/js/TimWolla.WCF.Chat.coffee b/file/js/TimWolla.WCF.Chat.coffee index 9a5f777..b14f44f 100644 --- a/file/js/TimWolla.WCF.Chat.coffee +++ b/file/js/TimWolla.WCF.Chat.coffee @@ -120,7 +120,7 @@ consoleMock ?= $('#timsChatClear').click (event) -> event.preventDefault() $('.timsChatMessage').remove() - @oldScrollTop = $('.timsChatMessageContainer').scrollTop() + @oldScrollTop = null $('.timsChatMessageContainer').scrollTop $('.timsChatMessageContainer ul').height() $('#timsChatInput').focus()